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

Allow ILM to stop if indices have nonexistent policies (#40820) #40858

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

gwbrown
Copy link
Contributor

@gwbrown gwbrown commented Apr 4, 2019

Backport of #40820


Prior to this PR, there is a bug in ILM which does not allow ILM to stop
if one or more indices have an index.lifecycle.name which refers to
a policy that does not exist - the operation_mode will be stuck as
STOPPING until either the policy is created or the nonexistent
policy is removed from those indices.

This change allows ILM to stop in this case and makes the logging more
clear as to why ILM is not stopping.

Prior to this PR, there is a bug in ILM which does not allow ILM to stop
if one or more indices have an index.lifecycle.name which refers to
a policy that does not exist - the operation_mode will be stuck as
STOPPING until either the policy is created or the nonexistent
policy is removed from those indices.

This change allows ILM to stop in this case and makes the logging more
clear as to why ILM is not stopping.
@gwbrown gwbrown merged commit b1b30ed into elastic:6.7 Apr 8, 2019
@emilianobaum
Copy link

Just to find a temporary solution, I go into the _state folder on the node master that was in charge and delete all the contents of the global file.
At that point I was able to stop the ILM to stop the pending task from increasing and avoid an out of memory error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants