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] Clear ehcache disk cache files during initialization #14806

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b3b743d from #14738.

* Clear ehcache disk cache files during initialization

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Adding UT to fix line coverage

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Addressing comment

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Adding more Uts for better line coverage

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Throwing exception in case we fail to clear cache files during startup

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Adding more UTs

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Adding a UT for more coverage

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Fixing gradle build

Signed-off-by: Sagar Upadhyaya <[email protected]>

* Update ehcache disk cache close() logic

Signed-off-by: Sagar Upadhyaya <[email protected]>

---------

Signed-off-by: Sagar Upadhyaya <[email protected]>
(cherry picked from commit b3b743d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❌ Gradle check result for 34cbe88: 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?

Copy link
Contributor

❌ Gradle check result for 34cbe88:

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?

Copy link
Contributor

✅ Gradle check result for 34cbe88: SUCCESS

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 76.47059% with 4 lines in your changes missing coverage. Please review.

Project coverage is 71.63%. Comparing base (ab0b4bf) to head (34cbe88).
Report is 2 commits behind head on 2.x.

Files Patch % Lines
.../opensearch/cache/store/disk/EhcacheDiskCache.java 76.47% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #14806      +/-   ##
============================================
- Coverage     71.69%   71.63%   -0.07%     
+ Complexity    62554    62505      -49     
============================================
  Files          5101     5101              
  Lines        293443   293450       +7     
  Branches      42762    42763       +1     
============================================
- Hits         210380   210205     -175     
- Misses        65440    65603     +163     
- Partials      17623    17642      +19     

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

@sohami sohami merged commit c3bcea6 into 2.x Jul 19, 2024
54 of 55 checks passed
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ect#14738) (opensearch-project#14806)

* Clear ehcache disk cache files during initialization

* Adding UT to fix line coverage

* Addressing comment

* Adding more Uts for better line coverage

* Throwing exception in case we fail to clear cache files during startup

* Adding more UTs

* Adding a UT for more coverage

* Fixing gradle build

* Update ehcache disk cache close() logic

---------

(cherry picked from commit b3b743d)

Signed-off-by: Sagar Upadhyaya <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <[email protected]>
@dbwiddis dbwiddis deleted the backport/backport-14738-to-2.x branch July 24, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants