Skip to content
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

[7.x] ILM: add support for rolling over data streams (#57295) #57515

Merged

Conversation

andreidan
Copy link
Contributor

As the datastream information is stored in the ClusterState.Metadata we exposed
the Metadata to the AsyncWaitStep#evaluateCondition method in order for
the steps to be able to identify when a managed index is part of a DataStream.

If a managed index is part of a DataStream the rollover target is the DataStream
name and the highest generation index is the write index (ie. the rolled index).

(cherry picked from commit 6b410df)
Signed-off-by: Andrei Dan [email protected]

Backport of #57295

andreidan added 2 commits June 2, 2020 10:40
As the datastream information is stored in the `ClusterState.Metadata` we exposed
the `Metadata` to the `AsyncWaitStep#evaluateCondition` method in order for
the steps to be able to identify when a managed index is part of a DataStream.

If a managed index is part of a DataStream the rollover target is the DataStream
name and the highest generation index is the write index (ie. the rolled index).

(cherry picked from commit 6b410df)
Signed-off-by: Andrei Dan <[email protected]>
@andreidan andreidan added :Data Management/ILM+SLM Index and Snapshot lifecycle management backport v7.9.0 labels Jun 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 2, 2020
@andreidan andreidan merged commit bd188f4 into elastic:7.x Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants