-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't try to delete watcher history backing indices in ESRestTestCase.wipeAllIndices(...) #106144
Conversation
Pinging @elastic/es-data-management (Team:Data Management) |
@@ -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 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 data stream backing indices, since they have to be removed their own special way, anyway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just add -.ds-.watcher-history-*
as a smaller step that would still fix these two tests? The problem is that watcher history is written asynchronously. That's not necessarily the case with every datastream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that's fine. I'll change it to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done via d353c5b.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ARGH. Of course I meant |
Closes #93848
Closes #99517
See also #100694 and #64521 for the history of this
DELETE
.