increase the lease to allow kahadb recovery, ci intermittent failure

This commit is contained in:
gtully 2016-05-26 11:29:34 +01:00
parent 0757cdcd59
commit 62ab55683f
2 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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 {