Make stale segments cleanup logic depend on map size as well - #20976
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
❌ Gradle check result for 1505def: 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: rayshrey <rayshrey@amazon.com>
1505def to
e9e673e
Compare
Signed-off-by: rayshrey <rayshrey@amazon.com>
e9e673e to
e0c4218
Compare
|
Failed to generate code suggestions for PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20976 +/- ##
=========================================
Coverage 73.31% 73.31%
- Complexity 72544 72615 +71
=========================================
Files 5819 5819
Lines 331399 331411 +12
Branches 47887 47888 +1
=========================================
+ Hits 242955 242976 +21
- Misses 68935 68945 +10
+ Partials 19509 19490 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: rayshrey <rayshrey@amazon.com>
|
Failed to generate code suggestions for PR |
…opensearch-project#20976) Signed-off-by: rayshrey <rayshrey@amazon.com> Signed-off-by: Gagan Dhakrey <gagandhakrey@Gagans-MacBook-Pro.local>
…opensearch-project#20976) Signed-off-by: rayshrey <rayshrey@amazon.com> Signed-off-by: Aparajita Pandey <aparajita31pandey@gmail.com>
…opensearch-project#20976) Signed-off-by: rayshrey <rayshrey@amazon.com>
Description
Currently stale segment cleanup logic is triggered only during the first refresh after a flush.
With this PR we are adding an additional setting that the cleanup can also get triggered when the map reaches a specific threshold. This threshold is backed by a setting, which can be set to -1 as well to disable this entire flow and fallback to the previous logic.
Related Issues
Resolves #20960
Check List
[ ] API changes companion pull request created, if applicable.[ ] Public documentation issue/PR created, if applicable.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.