Skip to content
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

[Backport 2.x] Move TSC took-time policy to guard both heap and disk tier #17478

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b1e66b3 from #17190.

* Move TSC took-time policy to guard both heap and disk tier

Signed-off-by: Peter Alfonsi <[email protected]>

* changelog

Signed-off-by: Peter Alfonsi <[email protected]>

* spotless apply

Signed-off-by: Peter Alfonsi <[email protected]>

* Addressed Sagar's comment

Signed-off-by: Peter Alfonsi <[email protected]>

* Add missing javadoc

Signed-off-by: Peter Alfonsi <[email protected]>

* address round 2 of comments

Signed-off-by: Peter Alfonsi <[email protected]>

* Add removal notification to put()

Signed-off-by: Peter Alfonsi <[email protected]>

* Fix incorrect stats hit when cache entry rejected by policy

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* Fixed more broken stats

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* Addressed more comments

Signed-off-by: Peter Alfonsi <[email protected]>

* make policy rejections count as neither hit or miss

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* remove potential double-loading

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* remove removalNotification

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

---------

Signed-off-by: Peter Alfonsi <[email protected]>
Signed-off-by: Peter Alfonsi <[email protected]>
Co-authored-by: Peter Alfonsi <[email protected]>
(cherry picked from commit b1e66b3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

✅ Gradle check result for 233e1c1: SUCCESS

Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 98.48485% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.99%. Comparing base (6a05e73) to head (233e1c1).
Report is 13 commits behind head on 2.x.

Files with missing lines Patch % Lines
...search/cache/common/tier/TieredSpilloverCache.java 98.14% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #17478      +/-   ##
============================================
+ Coverage     71.95%   71.99%   +0.04%     
- Complexity    65944    65997      +53     
============================================
  Files          5341     5341              
  Lines        307186   307258      +72     
  Branches      44830    44844      +14     
============================================
+ Hits         221026   221202     +176     
+ Misses        67703    67520     -183     
- Partials      18457    18536      +79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jainankitk jainankitk merged commit 427f220 into 2.x Feb 28, 2025
68 checks passed
@jainankitk jainankitk deleted the backport/backport-17190-to-2.x branch February 28, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant