This commit is contained in:
Michael Andre Pearce 2019-03-27 17:00:28 +00:00
commit 022223d383
1 changed files with 10 additions and 0 deletions

View File

@ -338,6 +338,16 @@ public class BackupSyncJournalTest extends FailoverTestBase {
assertNoMoreMessages();
}
@Test
public void testReceiveAllMessagesWithPurgeOnNoConsumers() throws Exception {
final boolean purgeOnNoConsumers = true;
createProducerSendSomeMessages();
liveServer.getServer().locateQueue(ADDRESS).setPurgeOnNoConsumers(purgeOnNoConsumers);
receiveMsgsInRange(0, n_msgs);
startBackupCrashLive();
assertNoMoreMessages();
}
private void startBackupCrashLive() throws Exception {
assertFalse("backup is started?", backupServer.isStarted());
liveServer.removeInterceptor(syncDelay);