Skip to content

Comments

Add circuit breaker pattern#1532

Closed
niveathika wants to merge 6 commits intoballerina-platform:masterfrom
niveathika:cb
Closed

Add circuit breaker pattern#1532
niveathika wants to merge 6 commits intoballerina-platform:masterfrom
niveathika:cb

Conversation

@niveathika
Copy link
Contributor

@niveathika niveathika commented Feb 1, 2026

Purpose

Fixes ballerina-platform/ballerina-library#8382

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 61.01010% with 193 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.44%. Comparing base (8dd576f) to head (c08e07b).
⚠️ Report is 28 commits behind head on master.

Files with missing lines Patch % Lines
.../ftp/client/circuitbreaker/FailureCategorizer.java 0.00% 83 Missing ⚠️
...dlib/ftp/client/circuitbreaker/CircuitBreaker.java 54.25% 35 Missing and 8 partials ⚠️
...tdlib/ftp/client/circuitbreaker/CircuitHealth.java 71.42% 14 Missing and 4 partials ⚠️
.../exception/FtpAllRetryAttemptsFailedException.java 0.00% 14 Missing ⚠️
...io/ballerina/stdlib/ftp/client/FtpRetryHelper.java 76.36% 9 Missing and 4 partials ⚠️
...java/io/ballerina/stdlib/ftp/client/FtpClient.java 88.34% 6 Missing and 6 partials ⚠️
...tp/client/circuitbreaker/CircuitBreakerConfig.java 89.58% 2 Missing and 3 partials ⚠️
...lib/ftp/client/circuitbreaker/FailureCategory.java 60.00% 3 Missing and 1 partial ⚠️
...erina/stdlib/ftp/client/circuitbreaker/Bucket.java 94.44% 1 Missing ⚠️

❌ Your project status has failed because the head coverage (78.44%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1532      +/-   ##
============================================
- Coverage     80.55%   78.44%   -2.11%     
- Complexity      612      902     +290     
============================================
  Files            46       70      +24     
  Lines          3019     4074    +1055     
  Branches        484      701     +217     
============================================
+ Hits           2432     3196     +764     
- Misses          387      594     +207     
- Partials        200      284      +84     

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@niveathika niveathika closed this Feb 3, 2026
@niveathika niveathika deleted the cb branch February 16, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add circuit breaker for ftp module

1 participant