diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/BasicDistributedJobsIT.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/BasicDistributedJobsIT.java index 367098396e7..fadeea79d1f 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/BasicDistributedJobsIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/BasicDistributedJobsIT.java @@ -349,6 +349,7 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase { .put(MachineLearning.ML_ENABLED.getKey(), false)); ensureStableCluster(2, mlNode); ensureStableCluster(2, nonMlNode); + ensureYellow(); // at least the primary shards of the indices a job uses should be started client().execute(OpenJobAction.INSTANCE, openJobRequest).actionGet(); assertBusy(() -> assertJobTask("job_id", JobState.OPENED, true)); }