[hornetq-commits] JBoss hornetq SVN: r10359 - branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 24 11:37:58 EDT 2011


Author: ataylor
Date: 2011-03-24 11:37:58 -0400 (Thu, 24 Mar 2011)
New Revision: 10359

Modified:
   branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
Log:
added pause between starting servers

Modified: branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
===================================================================
--- branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java	2011-03-23 17:57:12 UTC (rev 10358)
+++ branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java	2011-03-24 15:37:58 UTC (rev 10359)
@@ -330,6 +330,13 @@
       }
       System.out.println("=======================================================================");
 
+      for (HornetQServer hornetQServer : servers)
+      {
+         if (hornetQServer != null)
+         {
+            System.out.println(clusterDescription(hornetQServer));
+         }
+      }
       throw new IllegalStateException(msg);
    }
 
@@ -1793,7 +1800,11 @@
          ClusterTestBase.log.info("started server " + servers[node]);
 
          ClusterTestBase.log.info("started server " + node);
-
+         /*
+         * we need to wait a lil while between server start up to allow the server to communicate in some order.
+         * This is to avoid split brain on startup
+         * */
+         Thread.sleep(500);
       }
       for (int node : nodes)
       {



More information about the hornetq-commits mailing list