Skip to content

Commit c720e0c

Browse files
committed
Add another wait
1 parent 405fb5b commit c720e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,8 +930,8 @@ public void testSearchableSnapshotsInHotPhasePinnedToHotNodes() throws Exception
930930
// searchable snapshots mounted in the hot phase should be pinned to hot nodes
931931
assertThat(hotIndexSettings.get(DataTier.TIER_PREFERENCE), is("data_hot"));
932932

933-
assertOK(client().performRequest(new Request("DELETE", "_data_stream/" + dataStream)));
934-
assertOK(client().performRequest(new Request("DELETE", "_ilm/policy/" + policy)));
933+
// Wait for the original index to be deleted, to ensure ILM has finished
934+
awaitIndexDoesNotExist(firstGenIndex);
935935
}
936936

937937
// See: https://github.com/elastic/elasticsearch/issues/77269

0 commit comments

Comments
 (0)