Skip to content

Circuit breaker exception chain changed with 5.23.0 #968

@moellermarc

Description

@moellermarc

Describe the Bug

Hello Cloud SDK team,

after upgrading to Cloud SDK 5.23.0, some of our unit tests across several microservices started failing. It looks like the resilience decorator now raises a different exception chain. Release notes: https://sap.github.io/cloud-sdk/docs/java/release-notes#5230---october-08-2025 (Improvements).

Since the change, we haven’t found a reliable way to detect when the circuit breaker is open. Previously, we could check for a CallNotPermittedException in the exception chain.
When the circuit breaker is open, we need to:

  • Log the event for internal operations
  • Provide a corresponding error message to inform end users about the situation

Could you please advise on the recommended approach in 5.23.0+ to detect an open circuit breaker from the exception chain?

Thank you!

Steps to Reproduce

If helpful, we can reproduce and show this in our internal environment, depending on the next steps.
Contact: marc-andre.moeller@sap.com

Expected Behavior

We’d expect changes like this were reserved for major releases, along with a supported way to detect when the circuit breaker is open (from the exception chain).

Screenshots

No response

Used Versions

Cloud SDK 5.23.0

Code Examples

try {
			ResilienceDecorator.executeCallable(() -> {
				client.tradeRequestTRMBulkTransferConfirmationIn(request);
				return null;
			}, resilienceConfiguration);
		} catch (Exception e) {
			throw s4AdapterExceptionHelper.unwrapException(e, S4WebService.TRADE_REQUESTS_TRIGGER_TRANSFER);
		}

Stack Trace

No response

Log File

No response

Affected Development Phase

Production

Impact

Impaired

Timeline

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions