Fix a flaky test for issue 19916 ClusterShardLimitIT#20252
Fix a flaky test for issue 19916 ClusterShardLimitIT#20252liuguoqingfz wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
… until the index is actually CLOSED before continuing. Signed-off-by: Joe Liu <guoqing4@illinois.edu>
📝 WalkthroughWalkthroughThis change fixes a flaky test in ClusterShardLimitIT by replacing synchronous acknowledgement checks with explicit asynchronous polling to reliably wait for index state transitions, adding explicit cluster health verification, and updating method signatures to declare exception handling. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20252 +/- ##
============================================
+ Coverage 73.20% 73.26% +0.05%
- Complexity 71745 71754 +9
============================================
Files 5795 5795
Lines 328304 328304
Branches 47283 47283
============================================
+ Hits 240334 240517 +183
+ Misses 68663 68467 -196
- Partials 19307 19320 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR is stalled because it has been open for 30 days with no activity. |
Description
Fix a timing/ack timeout flake: prepareClose(...).get() returns an AcknowledgedResponse that can be false if the close cluster-state update times out waiting for acknowledgements, even though the close may still eventually apply.
Related Issues
Resolves #19916
Related CI test run: https://build.ci.opensearch.org/job/gradle-check/66791/testReport/org.opensearch.cluster.shards/ClusterShardLimitIT/testOpenIndexOverLimit__p0___opensearch_experimental_feature_writable_warm_index_enabled___true___/
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.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.