question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hystrix Circuit Never Closes After Opening

See original GitHub issue

I am seeing that circuit breakers that open do to a failure in a downstream service remain open and never close again when the downstream service is once again functioning. I am able to reproduce this in Brixton.RELEASE but not in the latest Angel release.

To reproduce the problem clone these three git projects and run them locally by running mvn spring-boot:run. https://github.com/ryanjbaxter/ocr-eureka https://github.com/ryanjbaxter/ocr-races https://github.com/ryanjbaxter/ocr-participants

If you hit http://localhost:8282/participants that will call the /participants route in the ocr-races service. Notice this will end up calling a method protected by a circuit breaker. If you then shut down the ocr-participants service and continue hitting /participants the circuit will open as expected. If you now restore the ocr-participants service and continue hitting /participants the circuit will never close again, no matter how long you wait.

Further experimentation has revealed that this only occurs when using a Feign client. If you use a RestTemplate (load balanced or just a vanilla RestTemplate) to call the downstream service than the circuit opens and closes as expected.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dsyercommented, Jul 21, 2016

The sample here doesn’t use Feign: https://github.com/spring-cloud-samples/tests/tree/master/hystrix and it has the same problem

0reactions
ryanjbaxtercommented, Aug 18, 2016

Fixed via #1278

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hystrix circuit not closing after downstream service recovers
However this is not happening here. The circuit will remain open even after changing the sleeping time to a smaller value (let's say...
Read more >
Hystrix circuit stays OPEN even after the the offending service ...
I am having an Issue where when the hystrix circuit breaker trips, it does not close ever again. I have turned logging to...
Read more >
Hystrix Circuit Breaker — How To Set It Up Properly - Medium
After that time, the first request will be served to a downstream resource, and in case of success, the circuit will be closed...
Read more >
Spring Cloud: Hystrix - Stack Abuse
Hystrix automatically closes the circuit after a certain time, which gives time to the downstream failing service to recover.
Read more >
Learning about Spring Cloud Feign and Hystrix Circuit Breaker
Just like a physical circuit breaker, Hystrix detects failure conditions. Let's say we are calling service and we start to get repeated failures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found