mirror of https://github.com/apache/activemq.git
increase the lease to allow kahadb recovery, ci intermittent failure
This commit is contained in:
parent
0757cdcd59
commit
62ab55683f
|
@ -130,7 +130,7 @@ abstract public class QueueMasterSlaveTestSupport extends JmsTopicSendReceiveWit
|
|||
MessageConsumer qConsumer = session.createConsumer(new ActiveMQQueue("Consumer.A.VirtualTopic.TA1"));
|
||||
assertNull("No message there yet", qConsumer.receive(1000));
|
||||
qConsumer.close();
|
||||
assertTrue(!master.isSlave());
|
||||
assertTrue("master is indeed the master", !master.isSlave());
|
||||
master.stop();
|
||||
assertTrue("slave started", slaveStarted.await(60, TimeUnit.SECONDS));
|
||||
assertTrue(!slave.get().isSlave());
|
||||
|
|
|
@ -112,8 +112,8 @@ public class kahaDbJdbcLeaseQueueMasterSlaveTest extends QueueMasterSlaveTestSup
|
|||
}
|
||||
|
||||
protected void configureLocker(KahaDBPersistenceAdapter kahaDBPersistenceAdapter) throws IOException {
|
||||
kahaDBPersistenceAdapter.setLockKeepAlivePeriod(500);
|
||||
kahaDBPersistenceAdapter.getLocker().setLockAcquireSleepInterval(500);
|
||||
kahaDBPersistenceAdapter.setLockKeepAlivePeriod(2000);
|
||||
kahaDBPersistenceAdapter.getLocker().setLockAcquireSleepInterval(5000);
|
||||
}
|
||||
|
||||
protected DataSource getExistingDataSource() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue