mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3805 - fix up unit test regressions with java.util.ConcurrentModificationException due to dispatch no longer being copy on write, shows up need to use iterator in message expiry case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1328724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6b4d077bdf
commit
fc4f01cf5d
|
@ -298,7 +298,7 @@ public abstract class PrefetchSubscription extends AbstractSubscription {
|
|||
if (broker.isExpired(node)) {
|
||||
node.getRegionDestination().messageExpired(context, this, node);
|
||||
}
|
||||
dispatched.remove(node);
|
||||
iter.remove();
|
||||
node.getRegionDestination().getDestinationStatistics().getInflight().decrement();
|
||||
}
|
||||
if (ack.getLastMessageId().equals(node.getMessageId())) {
|
||||
|
|
Loading…
Reference in New Issue