bwc tests: make sure first node is only started once

This commit is contained in:
Alpar Torok 2019-10-03 16:31:22 +03:00
parent edbc375916
commit 510d7d84b2
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,6 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named {
if (firstNode == null) { if (firstNode == null) {
node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[]"); node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[]");
} else { } else {
firstNode.start();
firstNode.waitForAllConditions(); firstNode.waitForAllConditions();
node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[\"" + firstNode.getTransportPortURI() + "\"]"); node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[\"" + firstNode.getTransportPortURI() + "\"]");
} }
@ -302,6 +301,7 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named {
} }
if (firstNode == null) { if (firstNode == null) {
firstNode = node; firstNode = node;
firstNode.start();
} }
} }
} }