Skip to content

Commit ae2b7fb

Browse files
committed
Revert bootstrapping condition
1 parent a2d609d commit ae2b7fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
import org.elasticsearch.plugins.Plugin;
106106
import org.elasticsearch.script.ScriptService;
107107
import org.elasticsearch.search.SearchService;
108-
import org.elasticsearch.test.discovery.TestZenDiscovery;
109108
import org.elasticsearch.test.disruption.ServiceDisruptionScheme;
110109
import org.elasticsearch.test.transport.MockTransportService;
111110
import org.elasticsearch.transport.MockTransportClient;
@@ -1924,8 +1923,7 @@ public synchronized List<String> startNodes(Settings... settings) {
19241923
final int prevMasterCount = getMasterNodesCount();
19251924
for (Settings nodeSettings : settings) {
19261925
final Settings nodeSettingsIncludingBootstrap;
1927-
if (prevMasterCount == 0 && autoManageMinMasterNodes && Arrays.stream(settings)
1928-
.allMatch(s -> Node.NODE_MASTER_SETTING.get(s) == false || TestZenDiscovery.USE_ZEN2.get(s) == true)) {
1926+
if (prevMasterCount == 0 && autoManageMinMasterNodes) {
19291927
nodeSettingsIncludingBootstrap = Settings.builder()
19301928
.put(INITIAL_MASTER_NODE_COUNT_SETTING.getKey(),
19311929
(int) Stream.of(settings).filter(Node.NODE_MASTER_SETTING::get).count())

0 commit comments

Comments
 (0)