[TEST] Start non ML node in BasicDistributedJobsIT.testMlIndicesNotAvailable

Original commit: elastic/x-pack-elasticsearch@71e63b6ea2
This commit is contained in:
Dimitrios Athanasiou 2017-06-14 16:43:57 +01:00
parent 1eb785d8ee
commit 50de99374c
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
internalCluster().ensureAtMostNumDataNodes(0); internalCluster().ensureAtMostNumDataNodes(0);
// start non ml node, but that will hold the indices // start non ml node, but that will hold the indices
logger.info("Start non ml node:"); logger.info("Start non ml node:");
internalCluster().startNode(Settings.builder()
.put("node.data", true)
.put(MachineLearning.ML_ENABLED.getKey(), false));
ensureStableCluster(1); ensureStableCluster(1);
logger.info("Starting ml node"); logger.info("Starting ml node");
String mlNode = internalCluster().startNode(Settings.builder() String mlNode = internalCluster().startNode(Settings.builder()