Fix [BUG] ClusterMaxMergesAtOnceIT is flaky#19647
Fix [BUG] ClusterMaxMergesAtOnceIT is flaky#19647andrross merged 6 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com>
update change log Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19647 +/- ##
============================================
- Coverage 73.30% 73.21% -0.09%
+ Complexity 71732 71706 -26
============================================
Files 5793 5793
Lines 328056 328110 +54
Branches 47245 47256 +11
============================================
- Hits 240476 240228 -248
- Misses 68264 68595 +331
+ Partials 19316 19287 -29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @andrross |
server/src/internalClusterTest/java/org/opensearch/index/ClusterMaxMergesAtOnceIT.java
Outdated
Show resolved
Hide resolved
|
Hi @msfroh |
@laminelam I don't see any response from you on this PR. Can you address the questions raised here? |
Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com>
WalkthroughRemoved the test workaround and made the third index creation explicit by wrapping it with assertAcked(prepareCreate(...)), and added a changelog entry documenting the fix for ClusterMaxMergesAtOnceIT.testClusterLevelDefaultUpdatesMergePolicy. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (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). (21)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
CHANGELOG.md (1)
23-30: Changelog entry looks good; consider aligning link style with neighborsThe new Fixed entry clearly documents the flaky-test fix and links the underlying issue. If this project’s convention is to reference PRs in the changelog (as neighboring lines do), you may want to either:
- Switch this to the PR URL, or
- Include both issue and PR numbers for consistency.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
CHANGELOG.md(1 hunks)server/src/internalClusterTest/java/org/opensearch/index/ClusterMaxMergesAtOnceIT.java(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
server/src/internalClusterTest/java/org/opensearch/index/ClusterMaxMergesAtOnceIT.java (1)
server/src/main/java/org/opensearch/index/TieredMergePolicyProvider.java (1)
TieredMergePolicyProvider(132-328)
⏰ 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). (1)
- GitHub Check: gradle-check
🔇 Additional comments (2)
server/src/internalClusterTest/java/org/opensearch/index/ClusterMaxMergesAtOnceIT.java (2)
50-52: assertAcked import is appropriate for the new index-creation patternThe static import of
assertAckedmatches the updated usage below and keeps the test code concise.
99-106: Verification inconclusive—please provide code context or test resultsThe claim that switching to
assertAcked(prepareCreate(...))fixes the NPE by ensuring replica settings are applied requires confirmation. The logical connection between a merge policy setting override and replica presence on data nodes is unclear. Please either:
- Share the full test method and
baseIndexSettings()definition to confirm how settings are applied- Provide test execution results demonstrating stability with the seed
2BD0981DD7D9F5EFbefore and after this change
|
❌ Gradle check result for 9154fe7: 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? |
* Fix flack test opensearch-project#18056 Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * remove AwaitsFix annotation update change log Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * use prepareCreate to merge with setup settings Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> --------- Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> Co-authored-by: Lamine Idjeraoui <lidjeraoui@apple.com>
* Fix flack test opensearch-project#18056 Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * remove AwaitsFix annotation update change log Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * use prepareCreate to merge with setup settings Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> --------- Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> Co-authored-by: Lamine Idjeraoui <lidjeraoui@apple.com>
* Fix flack test opensearch-project#18056 Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * remove AwaitsFix annotation update change log Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> * use prepareCreate to merge with setup settings Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> --------- Signed-off-by: Lamine Idjeraoui <lidjeraoui@apple.com> Co-authored-by: Lamine Idjeraoui <lidjeraoui@apple.com>
Resolves #18056
[BUG] ClusterMaxMergesAtOnceIT is flaky
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.