You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/10/04 19:03:11 UTC
[activemq-artemis] branch main updated: ARTEMIS-4020 Fixing Semaphore on soak-tests/OWLeakTest
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 20fde76e99 ARTEMIS-4020 Fixing Semaphore on soak-tests/OWLeakTest
20fde76e99 is described below
commit 20fde76e99c040abafe6aecd8c22ddcb201fd8a4
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Tue Oct 4 15:02:08 2022 -0400
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.
---
.../java/org/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);