[TEST] wait for yellow, to give ml indices time to get ready, open job api fails otherwise
Original commit: elastic/x-pack-elasticsearch@b1002cd289
This commit is contained in:
parent
b5db0d9f44
commit
0f5bfca69a
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue