You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2023/09/14 23:06:00 UTC
[jira] [Closed] (ARTEMIS-4417) AbstractJournalStorageManager storeKeyValuePair + deleteKeyValuePair are not thread safe
[ https://issues.apache.org/jira/browse/ARTEMIS-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clebert Suconic closed ARTEMIS-4417.
------------------------------------
Resolution: Fixed
> 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
> Priority: Major
> 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)