Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.15.0, 2.15.1
-
None
-
Novice
Description
The CircuitBreakerLoadBalancer will always switch to a half-open state immediately after the first rejected message instead of honouring the halfOpenAfter period.
It's due to the failed message count getting reset in the rejectExchange method:
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/processor/loadbalancer/CircuitBreakerLoadBalancer.java#L207