mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3519 - fix intermittent failure of org.apache.activemq.broker.RedeliveryRestartTest. inddividual ack marking delivery must be sent sync
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1190265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8340decaf3
commit
9ee2967220
|
@ -860,7 +860,7 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
|
|||
registerSync();
|
||||
MessageAck ack = new MessageAck(md, MessageAck.INDIVIDUAL_ACK_TYPE, 1);
|
||||
ack.setTransactionId(session.getTransactionContext().getTransactionId());
|
||||
session.sendAck(ack);
|
||||
session.syncSendPacket(ack);
|
||||
}
|
||||
|
||||
private void afterMessageIsConsumed(MessageDispatch md, boolean messageExpired) throws JMSException {
|
||||
|
|
|
@ -39,6 +39,7 @@ public class RedeliveryRestartTest extends BrokerRestartTestSupport {
|
|||
super.configureBroker(broker);
|
||||
KahaDBPersistenceAdapter kahaDBPersistenceAdapter = (KahaDBPersistenceAdapter) broker.getPersistenceAdapter();
|
||||
kahaDBPersistenceAdapter.setRewriteOnRedelivery(true);
|
||||
kahaDBPersistenceAdapter.setCleanupInterval(500);
|
||||
broker.addConnector("tcp://0.0.0.0:0");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue