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

ConcurrentModificationException in high volume broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.0
    • 5.2.0
    • Broker
    • None

    Description

      This is occurring in the thousands as messages come through. We have a network of 5 brokers although they do most of their work internally (publisher/consumer for queue are only on same broker) and do less work crossing to a central broker.

      java.util.ConcurrentModificationException
      at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
      at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:392)
      at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:391)
      at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.next(AbstractStoreCursor.java:136)
      at org.apache.activemq.broker.region.cursors.StoreQueueCursor.next(StoreQueueCursor.java:140)
      at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1178)
      at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1290)
      at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1004)
      at org.apache.activemq.thread.DeterministicTaskRunner.runTask(DeterministicTaskRunner.java:84)
      at org.apache.activemq.thread.DeterministicTaskRunner$1.run(DeterministicTaskRunner.java:41)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        1. amq1971.patch
          11 kB
          Jayson Minard

        Activity

          People

            rajdavies Robert Davies
            jayson.minard Jayson Minard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: