AMQ-7132 - update RecoveryStatsBrokerTest back to using always journal sync but a smaller journal size and less test messages to speed up test

This commit is contained in:
Christopher L. Shannon (cshannon) 2019-01-16 13:52:38 -05:00
parent ad6df3ca5a
commit 9fba7ec352
1 changed files with 2 additions and 3 deletions

View File

@ -61,8 +61,7 @@ public class RecoveryStatsBrokerTest extends BrokerRestartTestSupport {
@Override
protected void configureBroker(BrokerService broker) throws Exception {
KahaDBPersistenceAdapter persistenceAdapter = new KahaDBPersistenceAdapter();
persistenceAdapter.setJournalMaxFileLength(1024*1024);
persistenceAdapter.setJournalDiskSyncStrategy(JournalDiskSyncStrategy.PERIODIC.name());
persistenceAdapter.setJournalMaxFileLength(1024*20);
//persistenceAdapter.setConcurrentStoreAndDispatchQueues(false);
persistenceAdapter.setDirectory(broker.getBrokerDataDirectory());
broker.setPersistenceAdapter(persistenceAdapter);
@ -138,7 +137,7 @@ public class RecoveryStatsBrokerTest extends BrokerRestartTestSupport {
destinations.forEach(destination -> consumedMessages.put(destination, 0));
int numberOfMessages = 10000;
int numberOfMessages = 400;
StubConnection connection = createConnection();
ConnectionInfo connectionInfo = createConnectionInfo();