Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to load indices status in batches so that the URL used to call OpenSearch does not exceed maximum length (6.0) #21269

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

janheise
Copy link
Contributor

@janheise janheise commented Jan 6, 2025

Note: This is a backport of #21208 to 6.0.

Description

Prior to this PR, a call to getIndicesBlocksStatus() would exceed to URL maximum of 4096 bytes if the number of indices would be large.

Motivation and Context

How Has This Been Tested?

Tested manually by setting index.blocks on indices manually in OpenSearch and by reducing the threshold to a small amount that leads to reading all indices instead of only the list.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

…enSearch does not exceed maximum length (#21208)

* fix to load status in batches so that the url does not get too long

* partitioning over the length of the names, added changelog

* fix calculation error

* fix calculation error

* switching approach

* switching approach

* fixing test

* refactorings

* fix error during refactorings

* adding more block types

* Fixing max
@janheise janheise requested a review from dennisoelkers January 6, 2025 12:21
@dennisoelkers dennisoelkers merged commit ca99aa8 into 6.0 Jan 7, 2025
6 checks passed
@dennisoelkers dennisoelkers deleted the fix/backport-60-21208 branch January 7, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants