Skip to content

Commit

Permalink
Explicitly delete datasteam and ILM policy for searchable snapshot te…
Browse files Browse the repository at this point in the history
…st (#90075) (#90106)

Make sure we don't accidentally create searchable snapshots while cleaning them.
  • Loading branch information
arteam committed Sep 15, 2022
1 parent eafdbd6 commit dab7272
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ public void testSearchableSnapshotsInHotPhasePinnedToHotNodes() throws Exception
Map<String, Object> hotIndexSettings = getIndexSettingsAsMap(restoredIndex);
// searchable snapshots mounted in the hot phase should be pinned to hot nodes
assertThat(hotIndexSettings.get(DataTier.TIER_PREFERENCE), is("data_hot"));

assertOK(client().performRequest(new Request("DELETE", "_data_stream/" + dataStream)));
assertOK(client().performRequest(new Request("DELETE", "_ilm/policy/" + policy)));
}

// See: https://github.com/elastic/elasticsearch/issues/77269
Expand Down

0 comments on commit dab7272

Please sign in to comment.