clebertsuconic commented on code in PR #5173: URL: https://github.com/apache/activemq-artemis/pull/5173#discussion_r1732870640
########## tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/RepeatStartBackupTest.java: ########## @@ -156,8 +171,110 @@ public void testLoopStart() throws Exception { Assertions.assertEquals(0, errors.get()); } + } + + @Test + public void testAckManagerRepetition() throws Exception { + + String queueName = "queue_" + RandomUtil.randomString(); + + server.getConfiguration().setMirrorAckManagerQueueAttempts(300000); + server.getConfiguration().setMirrorAckManagerRetryDelay(1000); + backupServer.getConfiguration().setMirrorAckManagerPageAttempts(300000); + backupServer.getConfiguration().setMirrorAckManagerRetryDelay(1000); + + ExecutorService executorService = Executors.newFixedThreadPool(2); + runAfter(executorService::shutdownNow); + + AtomicInteger errors = new AtomicInteger(0); + AtomicBoolean running = new AtomicBoolean(true); + + runAfter(() -> running.set(false)); + CountDownLatch latch = new CountDownLatch(1); + CountDownLatch backupStarted = new CountDownLatch(1); + + AtomicInteger messagesSent = new AtomicInteger(0); + + int starBackupAt = 100; + Assertions.assertFalse(server.isReplicaSync()); + Assertions.assertFalse(backupServer.isStarted()); Review Comment: I inteded to do that.. and I was going to do it... I was working remotely yesterday (away from my desktop) and I forgot to include it.. my IDE was not working correctly this time. But thanks for noticing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact