camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Pavesi <>
Subject CircuitBreaker possible issue with async processor
Date Wed, 29 Oct 2014 12:47:09 GMT
Hi all, 

I'm very keen to integrate the circuit breaker EIP in an application, but I
noticed a misbehaviour when I use it with async processors, which is a
common case.

The problem is that the exception in the exchange seems to be populated
after the "hasFailed" method invocation.

To reproduce the error in the junit, I slightly changed the testing route

                    .circuitBreaker(2, 1000L, MyCustomException.class)


                    .circuitBreaker(2, 1000L, MyCustomException.class)

I raised an issue and attached a patch with a proposed fix:


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message