[ https://issues.apache.org/jira/browse/CAMEL-8584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390578#comment-14390578 ]
ASF GitHub Bot commented on CAMEL-8584: --------------------------------------- GitHub user kapowie opened a pull request: https://github.com/apache/camel/pull/458 CAMEL-8584 Circuit breaker does not honour halfOpenAfter period Updated unit test and fix for CAMEL-8584 Circuit breaker does not honour halfOpenAfter period You can merge this pull request into a Git repository by running: $ git pull https://github.com/kapowie/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/458.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #458 ---- commit 82b59c703e64b46bbb36f8e09f810e7f5023499d Author: jack.perrett <jack.perr...@gamesys.co.uk> Date: 2015-04-01T11:55:16Z CAMEL-8584 Update half-open test to assert circuit stays open during halfOpenAfter period commit 6559752f61e287ea88fc4e7159a34b83f624e2db Author: jack.perrett <jack.perr...@gamesys.co.uk> Date: 2015-04-01T13:48:39Z CAMEL-8584 Ensure circuit stays open during halfOpenAfter period ---- > Circuit breaker does not honour halfOpenAfter period > ---------------------------------------------------- > > Key: CAMEL-8584 > URL: https://issues.apache.org/jira/browse/CAMEL-8584 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.15.0, 2.15.1 > Reporter: jack patwork > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)