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/06/09 03:18:13 UTC

[GitHub] [rocketmq] zhouxinyu commented on pull request #4138: `RemotingCommand` is not thread-safe

zhouxinyu commented on PR #4138:
URL: https://github.com/apache/rocketmq/pull/4138#issuecomment-1150623942

   > Why not use ConcurrentHashMap instead of HashMap?Using ConcurrentHashMap, no need to lock when reading, and the scope of locking is smaller when writing.
   
   +1 for using ConcurrentHashMap to fix this issue


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