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 1.3] Avoid negative memory result in IndicesQueryCache stats calculation #6966

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Apr 4, 2023

Backport c0a8cf8 from #6917.

(opensearch-project#6917)

* Avoid negative memory result in IndicesQueryCache stats calculation

Signed-off-by: Daniel Widdis <[email protected]>

* Cache stores recent queries so isn't empty even with no doc id sets

Signed-off-by: Daniel Widdis <[email protected]>

* Add test which actually fails without the bug fix

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit c0a8cf8)
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #6966 (509b96d) into 1.3 (4b0acb3) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                1.3    #6966      +/-   ##
============================================
- Coverage     77.90%   77.81%   -0.09%     
+ Complexity    63460    63373      -87     
============================================
  Files          4454     4454              
  Lines        274964   274966       +2     
  Branches      41167    41168       +1     
============================================
- Hits         214209   213973     -236     
- Misses        43855    44053     +198     
- Partials      16900    16940      +40     
Impacted Files Coverage Δ
...java/org/opensearch/indices/IndicesQueryCache.java 89.43% <100.00%> (+0.86%) ⬆️

... and 450 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@saratvemulapalli saratvemulapalli merged commit 5b4ed15 into opensearch-project:1.3 Apr 12, 2023
@dbwiddis dbwiddis deleted the backport/backport-6917-to-1.3 branch April 12, 2023 17:19
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.

4 participants