geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject incubator-geode git commit: Disable auto-reconnect in the unit test Locator
Date Fri, 05 Feb 2016 23:22:52 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop a8263dd93 -> 4f508622d


Disable auto-reconnect in the unit test Locator


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/4f508622
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/4f508622
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/4f508622

Branch: refs/heads/develop
Commit: 4f508622d51b8b903d4e0c3500e51fe9991572c0
Parents: a8263dd
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Fri Feb 5 15:21:00 2016 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Fri Feb 5 15:21:55 2016 -0800

----------------------------------------------------------------------
 .../gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4f508622/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
index 5e7fa0e..99548b3 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
@@ -53,6 +53,7 @@ import batterytest.greplogs.ExpectedStrings;
 import batterytest.greplogs.LogConsumer;
 
 import com.gemstone.gemfire.distributed.Locator;
+import com.gemstone.gemfire.distributed.internal.DistributionConfig;
 import com.gemstone.gemfire.distributed.internal.membership.gms.membership.GMSJoinLeave;
 import com.gemstone.gemfire.internal.AvailablePortHelper;
 import com.gemstone.gemfire.internal.logging.LogService;
@@ -265,8 +266,11 @@ public class DUnitLauncher {
         p.setProperty("enable-cluster-configuration", "false");
         //Tell the locator it's the first in the system for
         //faster boot-up
-        
         System.setProperty(GMSJoinLeave.BYPASS_DISCOVERY_PROPERTY, "true");
+        // disable auto-reconnect - tests fly by so fast that it will never be
+        // able to do so successfully anyway
+        p.setProperty(DistributionConfig.DISABLE_AUTO_RECONNECT_NAME, "true");
+        
         try {
           Locator.startLocatorAndDS(locatorPort, locatorLogFile, p);
         } finally {


Mime
View raw message