lizhanhui commented on issue #4142: URL: https://github.com/apache/rocketmq/issues/4142#issuecomment-1150618821
@ni-ze > When modifies the map structurally, such as HashMap.put, synchronized already used. This is simply wrong. Sync the write op alone is not enough. The read thread may potentially be trapped in an infinite loop while iterating when `rehash` happens. This bug is less likely to trigger because this map is not frequently changed, especially in structure. -- 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]
