-
Notifications
You must be signed in to change notification settings - Fork 4.7k
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
threadPoolProperties ignored in GenericSetterBuilder#buildObservableCommandSetter #1611
Comments
More of the same problem: |
Is that a bug? |
I can't think of any reason you would use a thread pool with |
I found solution in #805 (comment), |
We have, for historical reasons, things that use Observable although they aren't completely asynchronous, so we need threads to have those things running well. In an ideal world that wouldn't be needed, but ... |
Using HystrixCommand annotation on a method returning Observable, the "threadPoolProperties" are ignored.
https://github.com/Netflix/Hystrix/blob/master/hystrix-contrib/hystrix-javanica/src/main/java/com/netflix/hystrix/contrib/javanica/command/GenericSetterBuilder.java
It's because the build() method (for non-Observables) copies those settings, but they are ignored in the buildObservableCommandSetter(). There's a TODO there hinting at the problem.
Most users won't notice this, since the isolation strategy doesn't default to THREAD for observables.
The text was updated successfully, but these errors were encountered: