Skip to content

Conversation

@liuguoqingfz
Copy link
Contributor

Description

The request cache only caches cacheable requests. Need to explicitly set .setRequestCache(true) on the search request to force caching. Without it, depending on defaults and the query/agg, the request might not be cached.Cache populated asynchronously / slight timing gap. Under test load, the stats read can race the cache put; need to retry/wait briefly.

Related Issues

Resolves #19727

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.

@liuguoqingfz liuguoqingfz requested a review from a team as a code owner October 24, 2025 12:04
@github-actions github-actions bot added >test-failure Test failure from CI, local build, etc. autocut flaky-test Random test failure that succeeds on second run labels Oct 24, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for 105cff2: 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: Joe Liu <guoqing4@illinois.edu>
@github-actions
Copy link
Contributor

✅ Gradle check result for 5257ed0: SUCCESS

@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.07%. Comparing base (0c89456) to head (5257ed0).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19761      +/-   ##
============================================
- Coverage     73.19%   73.07%   -0.13%     
+ Complexity    70946    70862      -84     
============================================
  Files          5735     5735              
  Lines        324654   324654              
  Branches      46962    46962              
============================================
- Hits         237643   237246     -397     
- Misses        67875    68271     +396     
- Partials      19136    19137       +1     

☔ 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.

@andrross andrross merged commit cb9c30b into opensearch-project:main Oct 24, 2025
33 checks passed
@andrross
Copy link
Member

FYI @sgup432 I've already merged this but please do take a look in case you see any issue here.

lawofcycles pushed a commit to lawofcycles/OpenSearch that referenced this pull request Oct 24, 2025
Signed-off-by: Joe Liu <guoqing4@illinois.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autocut flaky-test Random test failure that succeeds on second run >test-failure Test failure from CI, local build, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Gradle Check Flaky Test Report for EhcacheDiskCacheIT

2 participants