Skip to content

Commit

Permalink
Don't try to delete watcher history backing indices in ESRestTestCase…
Browse files Browse the repository at this point in the history
….wipeAllIndices(...) (#106144)
  • Loading branch information
joegallo authored Mar 11, 2024
1 parent 903524f commit cebb94d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,10 @@ 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 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-*"));
// remove all indices except some history indices 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-*", ".ds-.watcher-history-*")
);
if (preserveSecurityIndices) {
indexPatterns.add("-.security-*");
}
Expand Down

0 comments on commit cebb94d

Please sign in to comment.