Skip to content

Re-read policy phase JSON when using ILM's move-to-step API#48827

Merged
dakrone merged 1 commit intoelastic:masterfrom
dakrone:ilm-move-to-step-reread
Nov 13, 2019
Merged

Re-read policy phase JSON when using ILM's move-to-step API#48827
dakrone merged 1 commit intoelastic:masterfrom
dakrone:ilm-move-to-step-reread

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Nov 1, 2019

When using the move-to-step API, we should reread the phase JSON from
the latest version of the ILM policy. This allows a user to move to the
same step while re-reading the policy's latest version. For example,
when changing rollover criteria.

While manually messing around with some other things I discovered that
we only reread the policy when using the retry API, not the move-to-step
API. This commit changes the move-to-step API to always read the latest
version of the policy.

When using the move-to-step API, we should reread the phase JSON from
the latest version of the ILM policy. This allows a user to move to the
same step while re-reading the policy's latest version. For example,
when changing rollover criteria.

While manually messing around with some other things I discovered that
we only reread the policy when using the retry API, not the move-to-step
API. This commit changes the move-to-step API to always read the latest
version of the policy.
@dakrone dakrone added >bug :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v8.0.0 v7.5.0 v7.6.0 v7.4.3 labels Nov 1, 2019
@dakrone dakrone requested a review from AthenaEryma November 1, 2019 22:59
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Nov 1, 2019

Tangentially related to #35406

Copy link
Copy Markdown
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

LGTM

@jimczi jimczi removed the v7.5.0 label Nov 12, 2019
@dakrone dakrone merged commit 257e45d into elastic:master Nov 13, 2019
@dakrone dakrone deleted the ilm-move-to-step-reread branch November 13, 2019 00:07
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Nov 13, 2019
…48827)

When using the move-to-step API, we should reread the phase JSON from
the latest version of the ILM policy. This allows a user to move to the
same step while re-reading the policy's latest version. For example,
when changing rollover criteria.

While manually messing around with some other things I discovered that
we only reread the policy when using the retry API, not the move-to-step
API. This commit changes the move-to-step API to always read the latest
version of the policy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants