Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hystrix stream not responding

I am using spring-cloud-starter-hystrix:1.2.3.RELEASE in a Spring Boot application. I have 1 HystrixCommand, that I can execute successfully. After that I called

localhost:8080/hystrix.stream

however this Request loads forever and doesn't respond. On Google I cannot find anything about this.

like image 359
Stefano L Avatar asked Dec 21 '25 15:12

Stefano L


1 Answers

This happens if no command has been executed yet and therefor there are no metrics to publish in the stream.

The 'workaround' is to execute a Hystrix command.

This happens in Hystrix 1.5.8 and earlier. The behavior was changed in Hystrix 1.5.9 that was released yesterday. It will now publish a ping message if there are no metrics to publish.

This change was made to fix a bug where the stream would not detect closed connections when there were no metrics to publish. See Hystrix bug 1430 for more information.

like image 126
Mark Rotteveel Avatar answered Dec 23 '25 10:12

Mark Rotteveel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!