-
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
Move SLM history to data stream #63038
Move SLM history to data stream #63038
Conversation
Pinging @elastic/es-core-features (:Core/Features/ILM+SLM) |
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, I left one super minor comment, thanks Przemko!
Metadata metadata = clusterService.state().getMetadata(); | ||
if (metadata.dataStreams().containsKey(SLM_HISTORY_DATA_STREAM) == false && | ||
metadata.templatesV2().containsKey(SLM_TEMPLATE_NAME) == false) { | ||
logger.error(new ParameterizedMessage("failed to index snapshot history item in index [{}]: [{}]", |
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.
I think this should be a bit more descriptive about why it failed (such as mentioning that the data stream and template were missing) since we don't have an exception in this case
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.
You are right, I reworded error message
This change converts SLM history index to data stream. Consequence of this is name change as name of data stream can't start with .. New name for SLM history data stream will be slm-history-4 (retaining version in the name). # Conflicts: # x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/history/SnapshotHistoryStore.java # x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java
* Move SLM history to data stream (#63038) This change converts SLM history index to data stream. Consequence of this is name change as name of data stream can't start with .. New name for SLM history data stream will be slm-history-4 (retaining version in the name). # Conflicts: # x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/history/SnapshotHistoryStore.java # x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java * fix compilation * Move SLM history back to hidden .slm-history (#64210) This change moves SLM history back to .slm-history pattern (with dot) and makes it hidden as we have hidden data streams now. * fix checkstyle
This change converts SLM history index to data stream.
Consequence of this is name change as name of data stream can't start with
.
. New name for SLM history data stream will beslm-history-4
(retaining version in the name).