bwc tests: make sure first node is only started once
This commit is contained in:
parent
edbc375916
commit
510d7d84b2
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue