Remove flaky assertion in FullClusterRestartIT.testRecovery#20747
Remove flaky assertion in FullClusterRestartIT.testRecovery#20747andrross wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
The test asserts that after a full cluster restart upgrade, at least one old version Lucene segment must still exist on the primary. This is not guaranteed because background merges can merge all old version segments into new segments before the assertion runs. The remaining assertions still validate that translog replay occurred and produced at least one new-version segment on the primary. Signed-off-by: Andrew Ross <andrross@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 83fc653.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20747 +/- ##
============================================
+ Coverage 73.29% 73.33% +0.04%
- Complexity 72088 72169 +81
============================================
Files 5794 5794
Lines 329733 329733
Branches 47577 47577
============================================
+ Hits 241664 241809 +145
+ Misses 68612 68597 -15
+ Partials 19457 19327 -130 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The test asserts that after a full cluster restart upgrade, at least one old version Lucene segment must still exist on the primary. This is not guaranteed because background merges can merge all old version segments into new segments before the assertion runs.
The remaining assertions still validate that translog replay occurred and produced at least one new-version segment on the primary.
Related Issues
Resolves #15813
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.