Comcast / jrugged

A Java libary of robustness design patterns
Apache License 2.0
266 stars 93 forks source link

Calling tripHard() on an already open circuit breaker should not increment openCount #32

Closed ggiamarchi closed 9 years ago

ggiamarchi commented 9 years ago

In class org.fishwife.jrugged.CircuitBreaker this can be done in trip() method. openCount.getAndIncrement() should be perform only if previous state was not OPEN.

joercampbell commented 9 years ago

Closing this issue as there is an open pull request for it.