You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Arthur Naseef (JIRA)" <ji...@apache.org> on 2015/02/13 19:23:12 UTC

[jira] [Updated] (AMQ-5580) Thread unsafe operations on the PersistenceAdapters in the mKahaDB implementation

     [ https://issues.apache.org/jira/browse/AMQ-5580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arthur Naseef updated AMQ-5580:
-------------------------------
    Fix Version/s: 5.11.1

> 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.10.0, 5.10.1, 5.11.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.11.1, 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)