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

ILM: add frozen phase #60983

Merged
merged 1 commit into from
Aug 12, 2020
Merged

ILM: add frozen phase #60983

merged 1 commit into from
Aug 12, 2020

Conversation

andreidan
Copy link
Contributor

This adds a frozen phase to ILM that will allow the execution of the
set_priority, unfollow, allocate, freeze and searchable_snapshot actions.

The frozen phase will be executed after the cold and before the delete phase.

Relates to #60848

This adds a frozen phase to ILM that will allow the execution of the
set_priority, unfollow, allocate, freeze and searchable_snapshot actions.

The frozen phase will be executed after the cold and before the delete phase.
@andreidan andreidan added :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.0.0 v7.10.0 labels Aug 11, 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 Aug 11, 2020
@andreidan andreidan requested a review from dakrone August 11, 2020 17:05
@dakrone
Copy link
Member

dakrone commented Aug 11, 2020

Can you add an integration test for this also? Just something that makes sure the parsing and all that for "frozen": {"actions": ...} works correctly?

@andreidan
Copy link
Contributor Author

Can you add an integration test for this also? Just something that makes sure the parsing and all that for "frozen": {"actions": ...} works correctly?

@dakrone I've added a frozen phase to the full policy we use in integration tests (so an allocation action will be executed in the frozen phase in a few integration tests already) https://github.com/elastic/elasticsearch/pull/60983/files#diff-10033c7c446c648bcb131cf7ad168cbdR170
The full execution of a full policy is tested here https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/ilm/TimeSeriesLifecycleActionsIT.java#L112

Do you think we need to add more phase based testing?

@dakrone
Copy link
Member

dakrone commented Aug 12, 2020

@andreidan for some reason I was thinking that was transport based rather than REST based, so nevermind on that!

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'm glad this was smaller than I thought it was going to be!

@andreidan andreidan merged commit 6d01480 into elastic:master Aug 12, 2020
andreidan added a commit to andreidan/elasticsearch that referenced this pull request Aug 12, 2020
This adds a frozen phase to ILM that will allow the execution of the
set_priority, unfollow, allocate, freeze and searchable_snapshot actions.

The frozen phase will be executed after the cold and before the delete phase.

(cherry picked from commit 6d01480)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
andreidan added a commit that referenced this pull request Aug 12, 2020
This adds a frozen phase to ILM that will allow the execution of the
set_priority, unfollow, allocate, freeze and searchable_snapshot actions.

The frozen phase will be executed after the cold and before the delete phase.

(cherry picked from commit 6d01480)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Sep 15, 2020
With the differentiation between searchable snapshots on the cold phase and searchable snapshots on
the frozen phase not implemented, there is no need to have a separate phase/tier for now. This
commit removes the frozen phase and tier, which can be added back at a later time.

(this tier was never in a released version, so this is not a breaking change)

Relates to elastic#60983
Relates to elastic#60994
Relates to elastic#60848
dakrone added a commit that referenced this pull request Sep 16, 2020
With the differentiation between searchable snapshots on the cold phase and searchable snapshots on
the frozen phase not implemented, there is no need to have a separate phase/tier for now. This
commit removes the frozen phase and tier, which can be added back at a later time.

(this tier was never in a released version, so this is not a breaking change)

Relates to #60983
Relates to #60994
Relates to #60848
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Sep 16, 2020
With the differentiation between searchable snapshots on the cold phase and searchable snapshots on
the frozen phase not implemented, there is no need to have a separate phase/tier for now. This
commit removes the frozen phase and tier, which can be added back at a later time.

(this tier was never in a released version, so this is not a breaking change)

Relates to elastic#60983
Relates to elastic#60994
Relates to elastic#60848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants