Use syntactic sugar for starting data only nodes

This commit is contained in:
Simon Willnauer 2015-11-10 12:00:29 +01:00
parent 7b5e323ec0
commit 84033f3f2e

View File

@ -134,7 +134,7 @@ public class FullRollingRestartIT extends ESIntegTestCase {
public void testNoRebalanceOnRollingRestart() throws Exception {
// see https://github.com/elastic/elasticsearch/issues/14387
internalCluster().startMasterOnlyNode(Settings.EMPTY);
internalCluster().startNodesAsync(3, Settings.builder().put("node.master", false).build()).get();
internalCluster().startDataOnlyNodesAsync(3).get();
/**
* We start 3 nodes and a dedicated master. Restart on of the data-nodes and ensure that we got no relocations.
* Yet we have 6 shards 0 replica so that means if the restarting node comes back both other nodes are subject