mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-1112 - optimizeDispatch makes this test hang, commented it out for the moment, but should be investigated further
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@812038 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c459784012
commit
5510065ef1
|
@ -69,14 +69,14 @@ public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport {
|
|||
private void doCreateBroker(boolean memoryLimit) throws Exception {
|
||||
broker = new BrokerService();
|
||||
broker.setBrokerName("localhost");
|
||||
broker.setDataDirectory("data/");
|
||||
broker.setUseJmx(true);
|
||||
broker.setDeleteAllMessagesOnStartup(true);
|
||||
broker.addConnector("tcp://localhost:61616");
|
||||
|
||||
PolicyMap policyMap = new PolicyMap();
|
||||
PolicyEntry defaultEntry = new PolicyEntry();
|
||||
defaultEntry.setOptimizedDispatch(true);
|
||||
// TODO Optimize dispatch makes this test hang
|
||||
//defaultEntry.setOptimizedDispatch(true);
|
||||
defaultEntry.setExpireMessagesPeriod(100);
|
||||
defaultEntry.setMaxExpirePageSize(800);
|
||||
|
||||
|
@ -138,7 +138,7 @@ public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport {
|
|||
public boolean isSatisified() throws Exception {
|
||||
return sendCount == view.getExpiredCount();
|
||||
}
|
||||
});
|
||||
}, 5*1000l);
|
||||
LOG.info("enqueue=" + view.getEnqueueCount() + ", dequeue=" + view.getDequeueCount()
|
||||
+ ", inflight=" + view.getInFlightCount() + ", expired= " + view.getExpiredCount()
|
||||
+ ", size= " + view.getQueueSize());
|
||||
|
|
Loading…
Reference in New Issue