-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircuitBreaker broken for 0.9.3 #56
Comments
So this is the line that's failing? https://github.com/sunng87/diehard/blob/master/test/diehard/core_test.clj#L185 One thing that comes to mind is that the delay might be too short for this test: https://github.com/sunng87/diehard/blob/master/test/diehard/core_test.clj#L177 Since the circuit breaker will only be in the closed state for 10 milliseconds, the breaker might transition back to |
Hi @jhalterman , I set delay to 100 seconds and the test still fails: https://travis-ci.org/sunng87/diehard/builds/158639725 With 0.9.2 it passes with 10ms delay. |
Ah, now a NullPointer :) Any chance you can print a stack trace for the NullPointerException? |
Got the reason. From 0.9.3, now I will update diehard to adapt this change. |
@sunng87 Thanks. I'll add a note on this change to the changelog. The idea is that having CircuitBreakerOpenException extend FailsafeException makes the user experience a little better, so users can just catch FailsafeException if they want. I hadn't expected any breakage from this, but good to know. |
After updated to 0.9.3, some of my tests failed:
Those situation expected to throw
CircuitBreakerOpenException
now doesn't work as expected.I assume there shouldn't be API break change in a patch release. So this might be some regression issue?
The text was updated successfully, but these errors were encountered: