You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "gemmellr (via GitHub)" <gi...@apache.org> on 2023/09/05 15:43:45 UTC
[GitHub] [activemq-artemis] gemmellr opened a new pull request, #4603: ARTEMIS-4417: use ConcurrentHashMap for thread safety
gemmellr opened a new pull request, #4603:
URL: https://github.com/apache/activemq-artemis/pull/4603
The insert + remove methods in AbstractJournalStorageManager that can be used by the connection router LocalCache are not thread safe. They operate on a 'parent' ConcurrentHashMap, but entries within it are regular HashMap values and so are not thread safe despite potentially being used concurrently.
Switch the sub-maps to ConcurrentHashMap accordingly and also reuse some identical insertion code to simplify.
--
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: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [activemq-artemis] brusdev merged pull request #4603: ARTEMIS-4417: use ConcurrentHashMap for thread safety
Posted by "brusdev (via GitHub)" <gi...@apache.org>.
brusdev merged PR #4603:
URL: https://github.com/apache/activemq-artemis/pull/4603
--
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: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org