-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Replace ChildMemoryCircuitBreaker with NoopCircuitBreaker for File Cache. #19166
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
Replace ChildMemoryCircuitBreaker with NoopCircuitBreaker for File Cache. #19166
Conversation
Signed-off-by: Gagan Singh Saini <[email protected]>
❌ Gradle check result for 1fe8933: 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? |
❌ Gradle check result for 1fe8933: 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? |
I think we should remove the circuit breaker from the code if it is not used in practice. You will have to keep the existing constructor, but that should be pretty simple, something like: /**
* @deprecated Use {@link FileCache(SegmentedCache<Path, CachedIndexInput>)}. CircuitBreaker parameter is not used.
*/
@Deprecated(forRemoval = true)
public FileCache(SegmentedCache<Path, CachedIndexInput> cache, CircuitBreaker circuitBreaker) {
this(cache);
}
public FileCache(SegmentedCache<Path, CachedIndexInput> cache) {
this.theCache = cache;
} |
Signed-off-by: Gagan Singh Saini <[email protected]>
❌ Gradle check result for d162272: 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? |
❌ Gradle check result for d162272: 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? |
❌ Gradle check result for d162272: 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? |
❌ Gradle check result for d162272: 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? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19166 +/- ##
============================================
+ Coverage 72.81% 72.87% +0.06%
- Complexity 69631 69674 +43
============================================
Files 5658 5658
Lines 320087 320079 -8
Branches 46345 46345
============================================
+ Hits 233057 233246 +189
+ Misses 68118 67914 -204
- Partials 18912 18919 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…che. (opensearch-project#19166) Signed-off-by: Gagan Singh Saini <[email protected]>
Description
Replace ChildMemoryCircuitBreaker with NoopCircuitBreaker for File Cache.
Related Issues
Resolves #19137
Check List
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.