Robbie Gemmell created ARTEMIS-4417:
---------------------------------------

             Summary: AbstractJournalStorageManager storeKeyValuePair + 
deleteKeyValuePair are not thread safe
                 Key: ARTEMIS-4417
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4417
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Balancer
    Affects Versions: 2.30.0
            Reporter: Robbie Gemmell
             Fix For: 2.31.0


Continuing on from ARTEMIS-4406, the calls to AbstractJournalStorageManager 
storeKeyValuePair + deleteKeyValuePair used by LocalCache as part of the 
connection-router implementation are themselves also not entirely thread safe.

A ConcurrentHashMap is used for the initial structure, however a regular 
HashMap sub-map is then stored within the concurrent outer map, which can then 
also be accessed concurrently, meaning the methods aren't currently thread 
safe; it also needs to be a ConcurrentHashMap.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to