-
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
Fix remote shards balancer and remove unused variables #11167
Fix remote shards balancer and remove unused variables #11167
Conversation
❌ Gradle check result for 5ce38e5: 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? |
Compatibility status:Checks if related components are compatible with change 351649a Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/performance-analyzer.git] |
@kotwanikunal can you take a look at this when you are available |
Yes, this bug occurs when all deciders return NO for each node, because we always set the Line 447 in b974dfb
I just delete this statement to fix it. |
I just got back today. I will take a look at it shortly |
@bugmakerrrrrr LGTM. Do you mind adding in a changelog entry? I can re-run the gradle check as it looks unrelated. @sohami would be great to have a review from you as well! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11167 +/- ##
============================================
- Coverage 71.37% 71.34% -0.04%
+ Complexity 59102 59067 -35
============================================
Files 4893 4893
Lines 277754 277751 -3
Branches 40356 40356
============================================
- Hits 198242 198148 -94
- Misses 63066 63125 +59
- Partials 16446 16478 +32 ☔ View full report in Codecov by Sentry. |
2f962ba
to
d17f525
Compare
@kotwanikunal done |
❌ Gradle check result for d17f525: 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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Without the fix it will leave the unassigned shards with reason as throttled whereas in reality it was not eligible to be assigned on any of the available remote capable nodes
❕ Gradle check result for d17f525: 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. |
@bugmakerrrrrr Can you please rebase? :) |
Signed-off-by: panguixin <panguixin@bytedance.com>
Signed-off-by: panguixin <panguixin@bytedance.com>
Signed-off-by: panguixin <panguixin@bytedance.com>
Signed-off-by: panguixin <panguixin@bytedance.com>
d17f525
to
351649a
Compare
done |
❕ Gradle check result for 351649a: 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. |
* Fix RemoteShardsBalancer Signed-off-by: panguixin <panguixin@bytedance.com> * remove unused variables Signed-off-by: panguixin <panguixin@bytedance.com> * run spotless Signed-off-by: panguixin <panguixin@bytedance.com> * add change log Signed-off-by: panguixin <panguixin@bytedance.com> --------- Signed-off-by: panguixin <panguixin@bytedance.com> (cherry picked from commit edf7861) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix RemoteShardsBalancer * remove unused variables * run spotless * add change log --------- (cherry picked from commit edf7861) Signed-off-by: panguixin <panguixin@bytedance.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…oject#11167) * Fix RemoteShardsBalancer Signed-off-by: panguixin <panguixin@bytedance.com> * remove unused variables Signed-off-by: panguixin <panguixin@bytedance.com> * run spotless Signed-off-by: panguixin <panguixin@bytedance.com> * add change log Signed-off-by: panguixin <panguixin@bytedance.com> --------- Signed-off-by: panguixin <panguixin@bytedance.com>
…oject#11167) * Fix RemoteShardsBalancer Signed-off-by: panguixin <panguixin@bytedance.com> * remove unused variables Signed-off-by: panguixin <panguixin@bytedance.com> * run spotless Signed-off-by: panguixin <panguixin@bytedance.com> * add change log Signed-off-by: panguixin <panguixin@bytedance.com> --------- Signed-off-by: panguixin <panguixin@bytedance.com>
…oject#11167) * Fix RemoteShardsBalancer Signed-off-by: panguixin <panguixin@bytedance.com> * remove unused variables Signed-off-by: panguixin <panguixin@bytedance.com> * run spotless Signed-off-by: panguixin <panguixin@bytedance.com> * add change log Signed-off-by: panguixin <panguixin@bytedance.com> --------- Signed-off-by: panguixin <panguixin@bytedance.com>
…oject#11167) * Fix RemoteShardsBalancer Signed-off-by: panguixin <panguixin@bytedance.com> * remove unused variables Signed-off-by: panguixin <panguixin@bytedance.com> * run spotless Signed-off-by: panguixin <panguixin@bytedance.com> * add change log Signed-off-by: panguixin <panguixin@bytedance.com> --------- Signed-off-by: panguixin <panguixin@bytedance.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
Two changes here:
AllocationStatus
be set toDECIDERS_NO
when it cannot be allocated to any nodes;Check List
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.