Fix remote shards balancer and remove unused variables#11167
Fix remote shards balancer and remove unused variables#11167kotwanikunal merged 4 commits intoopensearch-project:mainfrom
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 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? |
sohami
left a comment
There was a problem hiding this comment.
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:
AllocationStatusbe set toDECIDERS_NOwhen 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.