Fix flaky PruneFileCacheIT.testPruneCacheWithRealData#20617
Fix flaky PruneFileCacheIT.testPruneCacheWithRealData#20617cwperks 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:
📝 WalkthroughWalkthroughA test file was refactored to stabilize flakiness by introducing a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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 |
|
❌ Gradle check result for 701a87f: 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? |
Signed-off-by: Andrew Ross <andrross@amazon.com>
701a87f to
986543b
Compare
...internalClusterTest/java/org/opensearch/action/admin/cluster/filecache/PruneFileCacheIT.java
Show resolved
Hide resolved
|
❕ Gradle check result for 986543b: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20617 +/- ##
============================================
+ Coverage 73.22% 73.29% +0.06%
- Complexity 72129 72172 +43
============================================
Files 5798 5798
Lines 329832 329832
Branches 47545 47545
============================================
+ Hits 241522 241750 +228
+ Misses 68998 68750 -248
- Partials 19312 19332 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ject#20617) Signed-off-by: Andrew Ross <andrross@amazon.com>
I found a deterministic repro with seed
B289DF27E8BA9F8. The issue is that all data for the index was still being referenced by the cache so nothing was prunable and the test failed. The behavior of the cache is that cloned IndexInputs can remained referenced until they are GC'd. The fix is to attempt to trigger GC in the polling loop until data is prunable.Related Issues
Resolves #19724
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.