Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-815

ConcurrentModificationException in ClientSessionImpl

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.5.Final
    • Fix Version/s: 2.2.5.Final
    • Component/s: Core
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Load test with 20 concurrent requests and 1000 iterations --> around 5 exceptions occur.

      Show
      Load test with 20 concurrent requests and 1000 iterations --> around 5 exceptions occur.

      Description

      When executing load tests we are getting several ConcurrentModificationExceptions when transactions are committed:

      java.util.ConcurrentModificationException
      at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
      at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:388)
      at org.hornetq.core.client.impl.ClientSessionImpl.flushAcks(ClientSessionImpl.java:1826)
      at org.hornetq.core.client.impl.ClientSessionImpl.commit(ClientSessionImpl.java:524)
      at org.hornetq.core.client.impl.DelegatingSession.commit(DelegatingSession.java:157)
      at org.hornetq.jms.client.HornetQSession.commit(HornetQSession.java:234)
      at org.springframework.jms.connection.JmsTransactionManager.doCommit(JmsTransactionManager.java:236)
      at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
      at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)

      Relevant code where the access to the consumers seems to be wrong:

      private void flushAcks() throws HornetQException
      {
      for (ClientConsumerInternal consumer : consumers.values())

      { consumer.flushAcks(); }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                clebert.suconic Clebert Suconic
                Reporter:
                mlange Marek Neumann
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: