Skip to content

Conversation

@Jonas-Isr
Copy link
Member

Context

Related BLI:

  • SAP/cloud-sdk-java-backlog#493

Related user issue:

Up until v5.22.0, when the circuit breaker opened the SDK would raise a CallNotPermittedException. Since v5.23.0, this exception is not raised anymore in favour of the most recent exception leading to the circuit breaker opening.

This PR (re-)introduces a way to programmatically check if the circuit breaker opened: this is exactly the case if a ResilienceRuntimeException e is thrown were e.getSuppressed() includes a CallNotPermittedException.

Feature scope:

  • enable programatic way to check if circuit breaker opened

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • Release notes updated

@Jonas-Isr Jonas-Isr self-assigned this Oct 20, 2025
@Jonas-Isr Jonas-Isr added the please review Request to review a pull request label Oct 20, 2025
@Jonas-Isr Jonas-Isr removed the please review Request to review a pull request label Oct 21, 2025
@Jonas-Isr Jonas-Isr added the please review Request to review a pull request label Oct 22, 2025
@Jonas-Isr Jonas-Isr enabled auto-merge (squash) October 22, 2025 10:29
@Jonas-Isr Jonas-Isr merged commit 48616ac into main Oct 22, 2025
14 checks passed
@Jonas-Isr Jonas-Isr deleted the circuit-breaker-excpetions branch October 22, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please review Request to review a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants