Skip to content

Commit

Permalink
Avoiding deleting SLM history indices in rest test cases because they…
Browse files Browse the repository at this point in the history
… are written to asynchronously
  • Loading branch information
masseyke committed Oct 11, 2023
1 parent f313479 commit 2fd0fa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@ protected static void wipeAllIndices() throws IOException {
protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOException {
boolean includeHidden = minimumNodeVersion().onOrAfter(Version.V_7_7_0);
try {
// remove all indices except ilm 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-*"));
// 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 2fd0fa6

Please sign in to comment.