NingleXu opened a new issue, #13060:
URL: https://github.com/apache/dubbo/issues/13060

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2
   * Operating System version: win10
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
在AbstractInvoker的子类中如(DubboInvoker、TripleInvoker)都调用了super.isDestroyed()判断是否destroyed。
   
![image](https://github.com/apache/dubbo/assets/91795546/2c29af87-b3ff-41b6-9cbb-60d5750d828b)
   
![image](https://github.com/apache/dubbo/assets/91795546/d4adce2e-47cf-4677-86f4-e180de9b50cf)
   但是destoryed字段并没有使用volatile修饰保证可见性,并发环境下可能出现重复执行的问题。
   
![image](https://github.com/apache/dubbo/assets/91795546/4890e1bb-52e0-4b8d-a00c-ce8bf0528682)
   
   
   解决方案:加上volatile关键字修饰
   
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


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