Skip to content

[7.x] Reject creating ILM policies with phase timings are not >= previous phase (#70089)#70110

Merged
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-70089
Mar 9, 2021
Merged

[7.x] Reject creating ILM policies with phase timings are not >= previous phase (#70089)#70110
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-70089

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Mar 8, 2021

Backports the following commits to 7.x:

…hase (elastic#70089)

It can be confusing to configure policies with phase timings that get smaller, because phase timings
are absolute. To make things a little clearer, this commit now rejects policies where a configured
min_age is less than a previous phase's min_age.

This validation is added only to the PutLifecycleAction.Request instead of the
TimeseriesLifecycleType class because we cannot do this validation every time a lifecycle is
created or else we will block cluster state from being recoverable for existing clusters that may
have invalid policies.

Resolves elastic#70032
@dakrone dakrone added backport :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v7.13.0 labels Mar 8, 2021
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Mar 8, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@dakrone dakrone merged commit 2ad1dea into elastic:7.x Mar 9, 2021
@dakrone dakrone deleted the backport/7.x/pr-70089 branch March 9, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants