Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-5580

Thread unsafe operations on the PersistenceAdapters in the mKahaDB implementation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.10.0, 5.10.1, 5.11.0
    • Fix Version/s: 5.11.1, 5.12.0
    • Component/s: Message Store
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              tabish Timothy A. Bish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: