assertTrue( waitForSyncReplClient( consumer, TOTAL_COUNT ) );
consumer.stop();
Thread.sleep( 5 * 1000 ); // let the journal be created and put in the map
SyncReplRequestHandler syncreplHandler = ( SyncReplRequestHandler ) providerServer.getReplicationReqHandler();
ReplicaEventLog log = syncreplHandler.getReplicaLogMap().values().iterator().next();
log.setMaxIdlePeriod( 10 ); // in seconds
syncreplHandler.getLogJanitor().setSleepTime( 1000 ); // every second
syncreplHandler.getLogJanitor().interrupt();
File replDir = providerServer.getDirectoryService().getInstanceLayout().getReplDirectory();
File logFile = new File( replDir, log.getName() + ".db" );
// there should be only one log file