Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8349

AbstractJournalStorageManager storeKeyValuePair + deleteKeyValuePair are not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None

      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.

            gemmellr Robbie Gemmell
            rh-messaging-ci Messaging CI
            Mikhail Krutov Mikhail Krutov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: