ericren opened a new issue #8121:
URL: https://github.com/apache/dubbo/issues/8121
### Environment
* Dubbo version: 2.7.12
* Operating System version: windows10
* Java version: 1.8
### Steps to reproduce this issue
目前想使用dubbo2.7.12的TagRouter进行标签传递,有应用A和应用B
应用A有方法 test
应用B有两个方法 b1、b2
> public void test() {
> RpcContext.getContext().setAttachment(CommonConstants.TAG_KEY,"tag1");
> B.b1();
> B.b2();
> }
A.test()调用前set tag路由标签:
A.test() ->
B.b1()时,通过RpcContext.getContext().getAttachment(CommonConstants.TAG_KEY)
能正常拿到tag,
但当B.b2()的时候,RpcContext.getContext().getAttachment(CommonConstants.TAG_KEY)就为null了
预期:是想要能在 B.b1()后,tag标签能继续传递下去。
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]