File tree 1 file changed +3
-1
lines changed
x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/integration
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,9 @@ public void testCloseUnassignedJobAndDatafeed() throws Exception {
146
146
waitForDatafeed (jobId , numDocs1 );
147
147
148
148
// stop the only ML node
149
+ ensureGreen (); // replicas must be assigned, otherwise we could lose a whole index
149
150
internalCluster ().stopRandomNonMasterNode ();
151
+ ensureStableCluster (1 );
150
152
151
153
// Job state is opened but the job is not assigned to a node (because we just killed the only ML node)
152
154
GetJobsStatsAction .Request jobStatsRequest = new GetJobsStatsAction .Request (jobId );
@@ -198,7 +200,7 @@ public void testJobRelocationIsMemoryAware() throws Exception {
198
200
199
201
// Wait for the cluster to be green - this means the indices have been replicated.
200
202
201
- ensureGreen (".ml-config" , ".ml-anomalies-shared" , ".ml-notifications" );
203
+ ensureGreen ();
202
204
203
205
// Open a big job. This should go on a different node to the 4 small ones.
204
206
You can’t perform that action at this time.
0 commit comments