You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2020/04/22 06:24:31 UTC

[GitHub] [activemq] jbonofre commented on a change in pull request #522: AMQ-7463 Getting concurrent modification exception

jbonofre commented on a change in pull request #522:
URL: https://github.com/apache/activemq/pull/522#discussion_r412702640



##########
File path: activemq-client/src/main/java/org/apache/activemq/state/ConnectionState.java
##########
@@ -46,7 +46,7 @@
     private final List<DestinationInfo> tempDestinations = Collections.synchronizedList(new ArrayList<DestinationInfo>());
     private final AtomicBoolean shutdown = new AtomicBoolean(false);
     private boolean connectionInterruptProcessingComplete = true;
-    private HashMap<ConsumerId, ConsumerInfo> recoveringPullConsumers;
+    private ConcurrentMap<ConsumerId, ConsumerInfo> recoveringPullConsumers;

Review comment:
       As @coheigea just a `Map` here is better IMHO.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org