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] Stop policy on last PhaseCompleteStep instead of Termina… #51758

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Jan 31, 2020

Backports the following commits to 7.x:

…tic#51631)

Currently when an ILM policy finishes its execution, the index moves into the `TerminalPolicyStep`,
denoted by a completed/completed/completed phase/action/step lifecycle execution state.

This commit changes the behavior so that the index lifecycle execution state halts at the last
configured phase's `PhaseCompleteStep`, so for instance, if an index were configured with a policy
containing a `hot` and `cold` phase, the index would stop at the `cold/complete/complete`
`PhaseCompleteStep`. This allows an ILM user to update the policy to add any later phases and have
indices configured to use that policy pick up execution at the newly added "later" phase. For
example, if a `delete` phase were added to the policy specified about, the index would then move
from `cold/complete/complete` into the `delete` phase.

Relates to elastic#48431
@dakrone dakrone added backport :Data Management/ILM+SLM Index and Snapshot lifecycle management v7.7.0 labels Jan 31, 2020
@elasticmachine
Copy link
Collaborator

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

@dakrone dakrone changed the title [7.x] Stop policy on last PhaseCompleteStep instead of TerminalPolic… (#51631) [7.x] Stop policy on last PhaseCompleteStep instead of Termina… Jan 31, 2020
@dakrone dakrone merged commit deefc85 into elastic:7.x Jan 31, 2020
@dakrone dakrone deleted the backport/7.x/pr-51631 branch January 31, 2020 17:36
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 v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants