Fix flaky tests in NodeJoinLeftIT#20382
Conversation
Signed-off-by: Craig Perkins <cwperx@amazon.com>
📝 WalkthroughWalkthroughThe test file NodeJoinLeftIT was modified to introduce cluster state listener delays on blue nodes, simulating publication lag during shard cleanup. The test workflow was updated to use assertBusy-based polling for node drop detection instead of immediate checks, and the validateNodeDropDueToPublicationLag method signature was updated to throw Exception to support the new timing-aware logic. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (4)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20382 +/- ##
============================================
- Coverage 73.30% 73.25% -0.05%
+ Complexity 71777 71748 -29
============================================
Files 5784 5784
Lines 328141 328147 +6
Branches 47269 47270 +1
============================================
- Hits 240531 240379 -152
- Misses 68329 68533 +204
+ Partials 19281 19235 -46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Description
The changes in this PR make the tests in NodeJoinLeftIT more stable. Tested with multiple iterations locally where the test fails regularly before the change and is stable with the change.
Seeing a lot of this lately:
ref: https://build.ci.opensearch.org/job/gradle-check/69731/
Related Issues
Resolves #18972
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.