You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: