Open dmartinsid opened 6 years ago
We have the same problem with spring sleuth tracing and hystrix.
If we use hystrix-core 1.5.11 it works and with 1.5.12 it fails. I think it is this commit that broke it https://github.com/Netflix/Hystrix/commit/951c6f9daa6dc469911b2e29a77fd85d90b4ab1e
The wrapCallable is being called on the timer thread in 1.5.12
Is there any progress on this? Apart from downgrading to 1.5.11, is there a workaround?
@whiskeysierra Maybe it's a bit overkill, but before finding this issue I implemented what's explained in #1653
Hello guys,
I have a custom concurrency strategy that copy Spring RequestAttributes ThreadLocal to another Thread.
It's work very well for a case of Exception, fallback function is called OK, but for a timeout case when my Callable is called the concurrent thread doesn't have the Thread Locals and I get a exception from Spring. The problem seems that wrapCallable must be called before to set ThreadLocals to HystrixTimer Thread use it.
For now we will disable timeout feature, but would be nice that it works too for our threadlocal case:
Test case
Custom Concurrent Strategy
Custom Callable
My Command