-
Bug
-
Resolution: Done
-
Minor
-
EAP_EWP 5.1.2 CR3
-
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)
Problematic line (1150) in ClientSessionImpl.java:
"for (Map.Entry<String, String> entries : metadata.entrySet())"