Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-289

Potential ConcurrentModificationException when closing connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • None
    • None

    Description

      org.apache.activemq.artemis.core.server.impl.QueueImpl#getConsumers returns the actual Set of consumers, but if another thread modifies this collection while the caller loops through the Set then a ConcurrentModificationException will be thrown. This is possible particularly in management operations that work on the Set of consumers like org.apache.activemq.artemis.api.core.management.ActiveMQServerControl#closeConsumerConnectionsForAddress.

      Attachments

        Activity

          People

            jbertram Justin Bertram
            jbertram Justin Bertram
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: