-
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 testClusterRelocationNoPreferenceShardMovementPrimaryFirstEnabled failure due to timeout #9420
Conversation
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Ran each test 200 times to confirm there's no flakiness. |
Compatibility status:Checks if related components are compatible with change 914544b Incompatible componentsIncompatible components: [https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/asynchronous-search.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #9420 +/- ##
============================================
+ Coverage 71.12% 71.17% +0.05%
- Complexity 57417 57470 +53
============================================
Files 4776 4776
Lines 270742 270738 -4
Branches 39578 39578
============================================
+ Hits 192558 192691 +133
+ Misses 62044 61804 -240
- Partials 16140 16243 +103
|
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.
Thanks @Poojita-Raj can you link this to a docs issue?
Signed-off-by: Poojita Raj <poojiraj@amazon.com> (cherry picked from commit 61c5f17) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com> Signed-off-by: Gagan Juneja <gjjuneja@amazon.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com> Signed-off-by: Kiran Reddy <kkreddy@amazon.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com> Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com> Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
Signed-off-by: Poojita Raj <poojiraj@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
Fixes the flaky timeout issue on testClusterRelocationNoPreferenceShardMovementPrimaryFirstEnabled so it passes every time as expected.
The issue was incorrect detection of the primary first shard movement strategy for throttling in the event that
ShardMovementStrategy
is set toNO_PREFERENCE
andmovePrimaryFirst
deprecated setting is set totrue
.Changed the logic of setting the shard movement strategy value.
Related Issues
Resolves #9178
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.