Skip to content

Conversation

Gagan6164
Copy link
Contributor

@Gagan6164 Gagan6164 commented Aug 24, 2025

Description

Remove Circuit Breaker check from File Cache put and compute

Related Issues

Resolves #19137

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.

Signed-off-by: Gagan Singh Saini <gagasa@amazon.com>
Copy link
Contributor

❌ Gradle check result for 1c5a01d: 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: Gagan Singh Saini <gagasa@amazon.com>
Copy link
Contributor

❌ Gradle check result for 9e02c05: 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: Gagan Singh Saini <gagasa@amazon.com>
Copy link
Contributor

❌ Gradle check result for a5140f4: 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: Gagan Singh Saini <gagasa@amazon.com>
Copy link
Contributor

❌ Gradle check result for 2e35bd0: 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?

@kkewwei
Copy link
Contributor

kkewwei commented Aug 25, 2025

Could you describe the reason for the PR?

Signed-off-by: Gagan Singh Saini <gagasa@amazon.com>
Copy link
Contributor

✅ Gradle check result for 9360d12: SUCCESS

Copy link

codecov bot commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.83%. Comparing base (9e64838) to head (9360d12).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19135      +/-   ##
============================================
- Coverage     72.91%   72.83%   -0.09%     
+ Complexity    69478    69413      -65     
============================================
  Files          5648     5648              
  Lines        319272   319261      -11     
  Branches      46183    46183              
============================================
- Hits         232811   232531     -280     
- Misses        67641    67947     +306     
+ Partials      18820    18783      -37     

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

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Search:Searchable Snapshots labels Aug 25, 2025
@Gagan6164
Copy link
Contributor Author

Could you describe the reason for the PR?

@kkewwei I have created an issue describing the motivation behind this change.

private final CircuitBreaker circuitBreaker;

public FileCache(SegmentedCache<Path, CachedIndexInput> cache, CircuitBreaker circuitBreaker) {
public FileCache(SegmentedCache<Path, CachedIndexInput> cache) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since FileCache is annotated as a Public API, this would be a breaking change.
Can we add a new constructor instead and call this constructor with a NoOpCircuitBreaker as the default ?

@Gagan6164 Gagan6164 force-pushed the removeCircuitBreakerInFileCache branch from 4fffb63 to 9360d12 Compare August 26, 2025 04:47
Copy link
Contributor

❌ Gradle check result for 9360d12: 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?

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 Search:Searchable Snapshots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Remove Circuit Breaker check from File Cache
3 participants