Skip to content

Commit a92c1dd

Browse files
authored
Wait for ML templates after in TooManyJobsIT (#54793)
1 parent 8ad7503 commit a92c1dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/integration/TooManyJobsIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void testLazyNodeValidation() throws Exception {
7474
}
7575
logger.info("Started [{}] nodes", numNodes);
7676
ensureStableCluster(numNodes);
77+
ensureTemplatesArePresent();
7778
logger.info("[{}] is [{}]", MachineLearning.MAX_LAZY_ML_NODES.getKey(), maxNumberOfLazyNodes);
7879
// Set our lazy node number
7980
assertTrue(client().admin()
@@ -208,6 +209,7 @@ private void startMlCluster(int numNodes, int maxNumberOfWorkersPerNode) throws
208209
}
209210
logger.info("Started [{}] nodes", numNodes);
210211
ensureStableCluster(numNodes);
212+
ensureTemplatesArePresent();
211213
}
212214

213215
private long calculateMaxMlMemory() {

0 commit comments

Comments
 (0)