Fix flaky testShardIndexingPressureTrackingDuringBulkWrites#20631
Fix flaky testShardIndexingPressureTrackingDuringBulkWrites#20631andrross merged 1 commit intoopensearch-project:mainfrom
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughRefactors a test method in ShardIndexingPressureIT to consolidate conditional branching by moving the if statement inside a single assertBusy block instead of maintaining two separate assertBusy invocations, while preserving all assertion logic. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
I think I found the actual problem... updated now so it's ready for review |
88214f4 to
1992fdd
Compare
The bug was that in the case of usePrimaryAsCoordinatingNode == false then the test was racing with the second request. The fix is to poll for the second request to make it to the primary shard for indexing. At this point we can assert on the memory tracking for the coordinator regardless of whether the primary or replica was the coordinator. Signed-off-by: Andrew Ross <andrross@amazon.com>
1992fdd to
62502d4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20631 +/- ##
============================================
- Coverage 73.35% 73.26% -0.10%
+ Complexity 72033 71918 -115
============================================
Files 5781 5781
Lines 329200 329200
Branches 47491 47491
============================================
- Hits 241501 241186 -315
- Misses 68308 68643 +335
+ Partials 19391 19371 -20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ch-project#20631) The bug was that in the case of usePrimaryAsCoordinatingNode == false then the test was racing with the second request. The fix is to poll for the second request to make it to the primary shard for indexing. At this point we can assert on the memory tracking for the coordinator regardless of whether the primary or replica was the coordinator. Signed-off-by: Andrew Ross <andrross@amazon.com>
The bug was that in the case of usePrimaryAsCoordinatingNode == false then the test was racing with the second request. The fix is to poll for the second request to make it to the primary shard for indexing. At this point we can assert on the memory tracking for the coordinator regardless of whether the primary or replica was the coordinator.
Resolves #15830
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.