From 2fd0fa680ce95ca73494a3bb52dcf8091b07170a Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Wed, 11 Oct 2023 09:58:25 -0500 Subject: [PATCH] Avoiding deleting SLM history indices in rest test cases because they are written to asynchronously --- .../main/java/org/elasticsearch/test/rest/ESRestTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java index a79d952ac5b27..444a0c6d752dc 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java @@ -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 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 indexPatterns = new ArrayList<>(List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*")); if (preserveSecurityIndices) { indexPatterns.add("-.security-*"); }