chickenlj commented on issue #8602:
URL: https://github.com/apache/dubbo/issues/8602#issuecomment-998613793


   ```java
   new Thread(() -> {
       helloServiceMethodCallBack.sayHello("dubbo");
       helloServiceMethodCallBack2.sayHello("dubbo(2)");
   }).start();
   ```
   
   如果按照这个调用模型,理论上来说 `helloServiceMethodCallBack2.sayHello("dubbo(2)");` 
应该是用的一个全新的 RpcContext 实例,因为第一次 `helloServiceMethodCallBack.sayHello("dubbo");` 
调用后,Dubbo会通过 ConsumerContextFilter 清空之前生成的 RpcContext 实例。
   
   如下图 RpcContext.setRpcContext() 已经是一个全新的 RpcContext 实例
   
   
![image](https://user-images.githubusercontent.com/18097545/146905465-6b6414fe-9d20-4505-95ca-7ce0a11c3be1.png)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to