-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Optimise unassigned shards iteration after allocator timeout #14977
Conversation
Signed-off-by: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
server/src/main/java/org/opensearch/gateway/ShardsBatchGatewayAllocator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for 3cfa046: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❕ Gradle check result for 3a80281: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
❕ Gradle check result for 9aee4e9: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
* Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]> (cherry picked from commit 555a56d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…rch-project#14977) * Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]>
…rch-project#14977) * Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]>
…rch-project#14977) * Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]>
…rch-project#14977) * Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]>
…imeout & Fix responsibility check for existing shards allocator when timed out (#15648) * Optimise unassigned shards iteration after allocator timeout (#14977) Signed-off-by: Rishab Nahata <[email protected]>
…timeout & fix responsibility check for existing shards allocator when timed out (#15650) * Optimise unassigned shards iteration after allocator timeout (#14977) * Fix responsibility check for existing shards allocator when timed out (#15223) Signed-off-by: Rishab Nahata <[email protected]>
…rch-project#14977) * Optimise unassigned shards iteration after allocator timeout Signed-off-by: Rishab Nahata <[email protected]>
Description
This PR optimises on how shards are marked throttled once it is timed out. Earlier it use to iterate over all unassigned shards for every batch, now it would collect all the shards that needs to ignored at once and iterate over unassigned shards once.
Related Issues
Resolves #14944
Check List
[] API changes companion pull request created, if applicable.[ ] Public documentation issue/PR created, if applicable.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.