carryxyh opened a new issue #2023: ForkingClusterInvoker missing RpcContext and the attachments. URL: https://github.com/apache/incubator-dubbo/issues/2023 - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate. - [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/wiki/FAQ) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 2.7.0-SNAPSHOT * Operating System version: mac os * Java version: 1.8 ### Step to reproduce this issue 1. Export a service 2. Make cluster = "forking" 3. Set Attachment in RpcContext 4. Do rpc invoke ### Expected Result The attachment in RpcContext has element. ### Actual Result The attachment in RpcContext don't have element. ### The problem I set attachment in the consumer side like this:  Then do rpc invoke,but the attachment is missing, (AbstractInvoker#invoke):  The problem is that ForkingClusterInvoker use threapool to do rpc invoke which will miss the threadlocal: 
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
