Timothy Bish created AMQ-5580:
---------------------------------
Summary: Thread unsafe operations on the PersistenceAdapters in
the mKahaDB implementation
Key: AMQ-5580
URL: https://issues.apache.org/jira/browse/AMQ-5580
Project: ActiveMQ
Issue Type: Bug
Components: Message Store
Affects Versions: 5.11.0, 5.10.1, 5.10.0
Reporter: Timothy Bish
Assignee: Timothy Bish
Priority: Minor
Fix For: 5.12.0
The MultiKahaDBPersistenceAdapter stores the list of PersistenceAdapters in a
LinkedList and does not guard against concurrent read / write operations which
can lead to exceptions in the logs and possible other subtle issues due to the
fact that traversal can be interrupted. The simple solution is to use a
CopyOnWriteArrayList here as this list is only added to and the set of adapters
is generally not very large. This will prevent an errors during iterations
over the set of adapters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)