From 20fde76e99c040abafe6aecd8c22ddcb201fd8a4 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 4 Oct 2022 15:02:08 -0400 Subject: [PATCH] ARTEMIS-4020 Fixing Semaphore on soak-tests/OWLeakTest I did not intend to have this difference in the semaphore. The idea is that we never keep messages pending on this case, otherwise such a huge message would use too much memory. --- .../apache/activemq/artemis/tests/soak/owleak/OWLeakTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/owleak/OWLeakTest.java b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/owleak/OWLeakTest.java index 79227f545a..944ee54928 100644 --- a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/owleak/OWLeakTest.java +++ b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/owleak/OWLeakTest.java @@ -122,7 +122,7 @@ public class OWLeakTest extends SoakTestBase { String QUEUE_NAME = "some_queue"; - Semaphore semaphore = new Semaphore(PRODUCERS + 1); + Semaphore semaphore = new Semaphore(PRODUCERS); CountDownLatch latch = new CountDownLatch(PRODUCERS + 1 + 1);