forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid indexing anything into SLM history indices when SLM disabled
This commit adds a check to the `SnapshotHistoryStore.putAsync` method that checks to see whether SLM is enabled prior to indexing the history document. Resolves failures from elastic#46508 that were caused by a retention job being kicked off, the test finishing and deleting all indices (including the `.slm-history-*` index), and then retention completing and indexing another history document. This caused the `.slm-history-*` index to be re-created and the test to fail due to the shard lock check in `InternalTestCluster.assertAfterTest` that checks all shards being unlocked.
- Loading branch information
Showing
5 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters