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 2278d48792 NO-JIRA Fixing AsyncOpenCloseTest
2278d48792 is described below

commit 2278d487927468684a1a0ab5c7377eb70a10af74
Author: Clebert Suconic <[email protected]>
AuthorDate: Tue May 6 13:22:15 2025 -0400

    NO-JIRA Fixing AsyncOpenCloseTest
    
    In some rare situation the test could deadlock as the callback will
    never finish. We shouldn't hold the wait forever.
---
 .../artemis/tests/integration/journal/AsyncOpenCloseTest.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/AsyncOpenCloseTest.java
 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/AsyncOpenCloseTest.java
index e4495bda86..f31749d1d2 100644
--- 
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/AsyncOpenCloseTest.java
+++ 
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/AsyncOpenCloseTest.java
@@ -98,8 +98,8 @@ public class AsyncOpenCloseTest extends ActiveMQTestBase {
                      try {
                         if (!valve.await(1, TimeUnit.MILLISECONDS)) {
                            logger.debug("blocking");
-                           blocked.await();
-                           valve.await(10, TimeUnit.SECONDS);
+                           blocked.await(1, TimeUnit.SECONDS);
+                           valve.await(1, TimeUnit.SECONDS);
                            logger.debug("unblocking");
                         }
                      } catch (Exception e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to