You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/13 04:29:31 UTC

[GitHub] [rocketmq] mz0113 commented on issue #4154: maybe there is a Thread Safe problem when send a message in the 'MQFaultStrategy#selectOneMessageQueue' code

mz0113 commented on issue #4154:
URL: https://github.com/apache/rocketmq/issues/4154#issuecomment-1097543543

   > I do not think so.
   > 
   > ```java
   > tpInfo.getSendWhichQueue().incrementAndGet()
   > ```
   > 
   > the index is a thread local variable, would change with thread.if thread switched, index will change.
   
   It is precisely because the index has changed that other threads have the opportunity to use this queue


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org