Skip to content

Conversation

@kkewwei
Copy link
Contributor

@kkewwei kkewwei commented May 21, 2025

Description

[Describe what this change achieves]

Related Issues

Resolves #17736

Check List

  • Functionality includes testing.
  • 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.

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Search:Performance v3.0.0 Issues and PRs related to version 3.0.0 labels May 21, 2025
@kkewwei kkewwei force-pushed the add_skip_factor branch from c31602e to bb809f7 Compare May 21, 2025 16:56
@github-actions
Copy link
Contributor

✅ Gradle check result for bb809f7: SUCCESS

@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

❌ Patch coverage is 95.74468% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.84%. Comparing base (c9eb7fb) to head (8d62e50).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...java/org/opensearch/indices/IndicesQueryCache.java 95.34% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18351      +/-   ##
============================================
- Coverage     73.00%   72.84%   -0.16%     
+ Complexity    69518    69427      -91     
============================================
  Files          5648     5648              
  Lines        319230   319272      +42     
  Branches      46174    46183       +9     
============================================
- Hits         233039   232567     -472     
- Misses        67346    67929     +583     
+ Partials      18845    18776      -69     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kkewwei kkewwei force-pushed the add_skip_factor branch 2 times, most recently from ed6544e to 4dac9a6 Compare May 23, 2025 15:56
@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2025

❌ Gradle check result for 649c936: 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?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2025

✅ Gradle check result for 649c936: SUCCESS

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

✅ Gradle check result for 628d631: SUCCESS

@kkewwei
Copy link
Contributor Author

kkewwei commented Jul 2, 2025

@msfroh @sgup432 @sandeshkr419 I apologize for the inconvenience, could someone please help merge the code? The merge button is grey on my side due to failing merge requirements.

@msfroh
Copy link
Contributor

msfroh commented Jul 3, 2025

@kkewwei -- just saw this notification now. I'll take a look tomorrow. If I forget, please tag me again.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

✅ Gradle check result for 04975a0: SUCCESS

@kkewwei
Copy link
Contributor Author

kkewwei commented Jul 9, 2025

@kkewwei -- just saw this notification now. I'll take a look tomorrow. If I forget, please tag me again.

@msfroh Tag 😊, please review in your spare time.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

❌ Gradle check result for 8ca9726: 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?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

✅ Gradle check result for 8ca9726: SUCCESS

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

✅ Gradle check result for fe28eb4: SUCCESS

@kkewwei
Copy link
Contributor Author

kkewwei commented Aug 7, 2025

@msfroh Tag you again😊

@sgup432
Copy link
Contributor

sgup432 commented Aug 20, 2025

@msfroh Can you take a look at this?
@kkewwei You might have to resolve conflicts on this one!

Copy link
Contributor

@msfroh msfroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like how isolated this is. I think it's a great change and highlights how tweakable the caching behavior can be. (Of course, we'll need to be careful that we don't expose too many settings, but these seem useful.)

@github-actions
Copy link
Contributor

✅ Gradle check result for 8d62e50: SUCCESS

@kkewwei kkewwei merged commit b38171e into opensearch-project:main Aug 21, 2025
31 checks passed
@kkewwei
Copy link
Contributor Author

kkewwei commented Aug 21, 2025

atris pushed a commit to atris/OpenSearch that referenced this pull request Aug 28, 2025
…or querycache (opensearch-project#18351)

* fix changelog conflicts

Signed-off-by: kkewwei <[email protected]>

* Add a dynamic setting to change skip_cache_factor and min_frequency for querycache

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* change the setting name

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* add volatile to variable

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

---------

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: Andrew Ross <[email protected]>
Co-authored-by: Andrew Ross <[email protected]>
kh3ra pushed a commit to kh3ra/OpenSearch that referenced this pull request Sep 5, 2025
…or querycache (opensearch-project#18351)

* fix changelog conflicts

Signed-off-by: kkewwei <[email protected]>

* Add a dynamic setting to change skip_cache_factor and min_frequency for querycache

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* change the setting name

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* add volatile to variable

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

---------

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: Andrew Ross <[email protected]>
Co-authored-by: Andrew Ross <[email protected]>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
…or querycache (opensearch-project#18351)

* fix changelog conflicts

Signed-off-by: kkewwei <[email protected]>

* Add a dynamic setting to change skip_cache_factor and min_frequency for querycache

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* change the setting name

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

* add volatile to variable

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>

---------

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: Andrew Ross <[email protected]>
Co-authored-by: Andrew Ross <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement or improvement to existing feature or request lucene Search:Performance v3.0.0 Issues and PRs related to version 3.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Query Cache] Add a dynamic cluster setting to change skip cache factor

4 participants