Skip to content

Commit

Permalink
Revert "Don't try to delete data stream backing indices"
Browse files Browse the repository at this point in the history
This reverts commit 3bd82b9.
  • Loading branch information
joegallo committed Mar 9, 2024
1 parent 3bd82b9 commit cb87f9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,8 @@ protected static void wipeAllIndices() throws IOException {
protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOException {
boolean includeHidden = clusterHasFeature(RestTestLegacyFeatures.HIDDEN_INDICES_SUPPORTED);
try {
// remove all indices except data stream backing indices, since they have to be removed their own special way, anyway
final List<String> indexPatterns = new ArrayList<>(List.of("*", "-.ds-*"));
// remove all indices except ilm and slm history which can pop up after deleting all data streams but shouldn't interfere
final List<String> indexPatterns = new ArrayList<>(List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*"));
if (preserveSecurityIndices) {
indexPatterns.add("-.security-*");
}
Expand Down

0 comments on commit cb87f9e

Please sign in to comment.