mirror of https://github.com/apache/activemq.git
resolve regression in FailoverTransactionTest following change to fix resolve https://issues.apache.org/activemq/browse/AMQ-2751, fix needs to be conditional on delayed delivery otherwise it can effect async transacted redelivery on failover
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@949789 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72015ca681
commit
7f0ced9402
|
@ -1232,7 +1232,10 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
|
|||
}
|
||||
}
|
||||
} else {
|
||||
session.connection.rollbackDuplicate(this, md.getMessage());
|
||||
if (!unconsumedMessages.isRunning()) {
|
||||
// delayed redelivery, ensure it can be re delivered
|
||||
session.connection.rollbackDuplicate(this, md.getMessage());
|
||||
}
|
||||
unconsumedMessages.enqueue(md);
|
||||
if (availableListener != null) {
|
||||
availableListener.onMessageAvailable(this);
|
||||
|
|
Loading…
Reference in New Issue