xiangyuQi opened a new pull request #572: fix issue #571 URL: https://github.com/apache/servicecomb-pack/pull/572 解决issue #571 OmegaContext 中使用了 InheritableThreadLocal 在feign调用开启hystrix时,hystrix会为每个feignClient创建线程池. InheritableThreadLocal在第一次创建线程时,可以正确继承到父线程的线程变量,但是当线程被复用时,InheritableThreadLocal不会被更新,导致无法在feign调用的header里传递globalTxId和localTxId 我参考了spring security解决securityContext 线程变量在使用hystrix时,传递线程变量的方案,针对OmegaContext里的线程变量进行了传递,并提供了可扩展的接口
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services