[hornetq-commits] JBoss hornetq SVN: r9555 - trunk/src/main/org/hornetq/core/journal/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Aug 17 01:56:48 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-08-17 01:56:48 -0400 (Tue, 17 Aug 2010)
New Revision: 9555

Modified:
   trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java
Log:
Fixing a test exclusive method that was breaking a stress-test 

Modified: trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java	2010-08-17 03:10:18 UTC (rev 9554)
+++ trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java	2010-08-17 05:56:48 UTC (rev 9555)
@@ -2467,7 +2467,7 @@
       {
          // Send something to the closingExecutor, just to make sure we went
          // until its end
-         final CountDownLatch latch = new CountDownLatch(2);
+         final CountDownLatch latch = new CountDownLatch(1);
 
          filesExecutor.execute(new Runnable()
          {
@@ -2476,14 +2476,6 @@
                latch.countDown();
             }
          });
-         
-         compactorExecutor.execute(new Runnable()
-         {
-            public void run()
-            {
-               latch.countDown();
-            }
-         });
 
          latch.await();
       }



More information about the hornetq-commits mailing list