Skip to content
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

IllegalStateException: Cannot record result for open circuit #32

Closed
sunng87 opened this issue Jul 5, 2016 · 1 comment
Closed

IllegalStateException: Cannot record result for open circuit #32

sunng87 opened this issue Jul 5, 2016 · 1 comment

Comments

@sunng87
Copy link
Contributor

sunng87 commented Jul 5, 2016

I'm using circuit breaker in a high concurrent environment, and I'm getting this IllegalStateException:

java.lang.IllegalStateException: Cannot record result for open circuit
  at net.jodah.failsafe.internal.OpenState.recordFailure(OpenState.java:34)
  at net.jodah.failsafe.CircuitBreaker.recordFailure(CircuitBreaker.java:436)
  at net.jodah.failsafe.AbstractExecution.complete(AbstractExecution.java:87)
  at net.jodah.failsafe.SyncFailsafe.call(SyncFailsafe.java:170)
  at net.jodah.failsafe.SyncFailsafe.get(SyncFailsafe.java:42)
@sunng87
Copy link
Contributor Author

sunng87 commented Jul 5, 2016

This issue will make concurrentExecution never get chance to decrement, so the state will stuck in HalfOpen and rejects all the execution requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant