-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bugfix] Fix cache maximum size settings not working properly with pluggable caching #16636
base: main
Are you sure you want to change the base?
[Bugfix] Fix cache maximum size settings not working properly with pluggable caching #16636
Conversation
Signed-off-by: Peter Alfonsi <[email protected]>
Signed-off-by: Peter Alfonsi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16636 +/- ##
============================================
+ Coverage 72.20% 72.70% +0.49%
- Complexity 65289 65642 +353
============================================
Files 5299 5299
Lines 303536 303544 +8
Branches 43941 43943 +2
============================================
+ Hits 219180 220684 +1504
+ Misses 66441 65101 -1340
+ Partials 17915 17759 -156 ☔ View full report in Codecov by Sentry. |
❌ Gradle check result for 469006a: 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: Peter Alfonsi <[email protected]>
469006a
to
76ad2ef
Compare
❌ Gradle check result for 76ad2ef: 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: Peter Alfonsi <[email protected]>
❌ Gradle check result for c75fb9f: 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? |
…ting-bugfix Signed-off-by: Peter Alfonsi <[email protected]>
❌ Gradle check result for db3e068: 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: Peter Alfonsi <[email protected]>
❌ Gradle check result for 8ea8f07: 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: Ankit Jain <[email protected]>
❌ Gradle check result for 7f9c5f5: 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? |
...ache-common/src/main/java/org/opensearch/cache/common/tier/TieredSpilloverCacheSettings.java
Outdated
Show resolved
Hide resolved
modules/cache-common/src/test/java/org/opensearch/cache/common/tier/MockDiskCache.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/common/cache/service/CacheService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/common/cache/store/OpenSearchOnHeapCache.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Peter Alfonsi <[email protected]>
❕ Gradle check result for ff2f1e5: 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. |
Signed-off-by: Peter Alfonsi <[email protected]>
224cc37
to
c518d58
Compare
Description
Fixes a bug (#16631) where max size settings for cache implementations were not working correctly when pluggable caching is on.
The cache implementations like OpenSearchOnHeapCache had been changed so that the max size value from the config overrode the value from their setting. This allowed the TieredSpilloverCache to send different sizes into the cache config when constructing its segments. However, the IndicesRequestCache was also putting its default 1% of heap size value into the cache config, and this overrode the setting values even when pluggable caching was on.
Fixes this by having the IRC only put a max size value into the config if pluggable caching is off.
Adds UTs around this. Also tested manually with different combinations of settings.
Related Issues
Resolves #16631
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.