Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7844

ConcurrentModificationException in ClientSessionImpl - MultiThreadRandomReattachTest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.1.2 CR4
    • EAP_EWP 5.1.2 CR3
    • HornetQ
    • None
    • Not Required

      There is ConcurrentModificationException in org.hornetq.tests.integration.cluster.reattach.MultiThreadRandomReattachTest::#test testC thrown from ClientSessionImpl core class.

      Log:
      [junit] * [Timer-2] 2-Jan 13:45:47,673 SEVERE [RemotingConnectionImpl] Failed to execute failure listener
      [junit] java.util.ConcurrentModificationException
      [junit] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
      [junit] at java.util.HashMap$EntryIterator.next(HashMap.java:834)
      [junit] at java.util.HashMap$EntryIterator.next(HashMap.java:832)
      [junit] at org.hornetq.core.client.impl.ClientSessionImpl.handleFailover(ClientSessionImpl.java:1150)
      [junit] at org.hornetq.core.client.impl.ClientSessionFactoryImpl.reconnectSessions(ClientSessionFactoryImpl.java:964)
      [junit] at org.hornetq.core.client.impl.ClientSessionFactoryImpl.failoverOrReconnect(ClientSessionFactoryImpl.java:665)
      [junit] at org.hornetq.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:555)
      [junit] at org.hornetq.core.client.impl.ClientSessionFactoryImpl.access$000(ClientSessionFactoryImpl.java:78)
      [junit] at org.hornetq.core.client.impl.ClientSessionFactoryImpl$DelegatingFailureListener.connectionFailed(ClientSessionFactoryImpl.java:1570)
      [junit] at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.callFailureListeners(RemotingConnectionImpl.java:570)
      [junit] at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.fail(RemotingConnectionImpl.java:335)
      [junit] at org.hornetq.tests.integration.cluster.reattach.MultiThreadReattachSupport$Failer.run(MultiThreadReattachSupport.java:265)

      Hudson job:
      https://hudson.qa.jboss.com/hudson/view/EAP5/view/HornetQ/job/_Solaris10-SPARC64-SunJDK1.6-NIO/96/consoleText

      Problematic line (1150) in ClientSessionImpl.java:
      "for (Map.Entry<String, String> entries : metadata.entrySet())"

              csuconic@redhat.com Clebert Suconic
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: