HystrixObservableCommand SEMAPHORE and timeout configuration

690 views
Skip to first unread message

Greg Roodt

unread,
Sep 2, 2016, 9:53:53 AM9/2/16
to HystrixOSS
Hi

I've seen various conversations around timeouts in SEMAPHORE isolated Commands.

I'm wondering what the current state is and how to configure the values in the config.properties file?

Does this value still take effect?
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=1000

It seems like it does, even for SEMAPHORE isolated Commands.


Matt Jacobs

unread,
Sep 7, 2016, 3:28:58 PM9/7/16
to HystrixOSS
Yes that still works (though now it's poorly-named).  This also works:

hystrix.command.default.execution.timeoutInMilliseconds=1000

In theory, I'd like to remove the use of the former, but that could cause weird, silent breakages for people.  So I don't have a definite timeline for removal of that config namespace.

Greg Roodt

unread,
Sep 8, 2016, 4:26:28 AM9/8/16
to HystrixOSS
Great! Thanks Matt.

Would you like me to update the documentation with the new value so people stop using the old value?

Greg Roodt

unread,
Sep 8, 2016, 9:27:30 AM9/8/16
to HystrixOSS
Hmmmm....

Does this configuration style work for Commands as well? It seems that the shorter syntax doesn't work for me on 1.5.5.
hystrix.command.SomeCommand.execution.timeoutInMilliseconds=2000

Matt Jacobs

unread,
Sep 14, 2016, 11:07:33 PM9/14/16
to HystrixOSS
Yeah, looks like you're right.  in HystrixCommandDemo, there are a couple places where we configure timeouts via a named property.

Using hystrix.command.XXX.execution.isolation.thread.timeoutInMilliseconds=YYY worked
Using hystrix.command.XXX.execution.timeoutInMilliseconds=YYY did not

I already have a ticket to properly deprecate - I'll make sure this gets fixed.

Thanks for the report!

Greg Roodt

unread,
Sep 15, 2016, 4:09:59 AM9/15/16
to HystrixOSS
Cool! Thanks Matt.

If it's an easy enough fix, point me to the issue and I'll take a look.

Matt Jacobs

unread,
Sep 15, 2016, 11:32:06 AM9/15/16
to HystrixOSS
This was the original issue: https://github.com/Netflix/Hystrix/issues/673.  It's specifically around the deprecation/removal lifecycle.  Might be better to open a new Issue/PR.  If you're up for contributing, that would be awesome.  Otherwise, I'll make sure it happens in the 1.5.6 release.

Thanks!
Reply all
Reply to author
Forward
0 new messages