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

Thread unsafe operations on the PersistenceAdapters in the mKahaDB implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.10.0, 5.10.1, 5.11.0
    • 5.11.1, 5.12.0
    • Message Store
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: