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 2019/01/22 07:06:37 UTC
[GitHub] ymwneu commented on issue #700: Potential Concurrent Risk in
RouteInfoManager
ymwneu commented on issue #700: Potential Concurrent Risk in RouteInfoManager
URL: https://github.com/apache/rocketmq/issues/700#issuecomment-456292950
迭代过程中,如果HashMap中元素有增或删,确实会直接报错,并影响下次调度。由于执行得不频繁,并且broker机器变化也不频繁,因此很少会报错。这块代码确实需要优化一下,做个try catch或者使用ConcurrentHashMap,都可以解决问题。
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services