CircuitBreakerOpenException get reason

31 views
Skip to first unread message

Phillip Krüger

unread,
May 21, 2018, 2:02:32 AM5/21/18
to Eclipse MicroProfile
Hi all.

In the Fault Tolerance Api, when a circuit breaker activates, a  CircuitBreakerOpenException gets thrown. Is there a way to get the original reason that the circuit has been tripped from the CircuitBreakerOpenException ?

CircuitBreakerOpenException.getCause seems to be null ? (wildfly-swarm at least)

Thanks

Ken Finnigan

unread,
May 21, 2018, 7:52:21 AM5/21/18
to Eclipse MicroProfile
Phillip,

If you've found an issue with the WF Swarm implementation of Eclipse FT, please raise an issue here: https://issues.jboss.org/projects/THORN/issues/THORN-2031?filter=allopenissues

Thanks
Ken

Phillip Krüger

unread,
May 21, 2018, 10:05:20 AM5/21/18
to Eclipse MicroProfile
Hi Ken

Thanks for the reply. I will definitely do that (maybe even with a pull request :) ). I just want to confirm that this should be possible. (So what does the spec say ?)

Should I be able to get the 'reason' the switch tripped in the CircuitBreakerOpenException ? I can not see much in the spec:


I'll look at the wildfly-swarm (or thorntail) code so long and see if it's possible. Maybe the spec authors can comment on what the behaviour should be?

Thanks again!
Reply all
Reply to author
Forward
0 new messages