Skip to content

Conversation

@talevy
Copy link
Contributor

@talevy talevy commented Oct 24, 2018

Since #34304, index.lifecycle.name is no longer an
internal index setting. This was done to simplify the API
and remove the dedicated API for setting a policy on an index
after it was created. The idea is that this is best done as an
index setting update. The same could be said about the remove_policy
API.

This commit removes the dedicated API command to remove a policy
from an index. Update Settings API should be used instead to
set index.lifecycle.name to null or the empty string.

TODO: Discussion

One point of discussion is how to handle the scenarios that remove_policy
handled safely beforehand.

  1. removal of policy while in an unsafe action
  2. cleanup of index settings
  3. cleanup of custom metadata

Since elastic#34304, `index.lifecycle.name` is no longer an
internal index setting. This was done to simplify the API
and remove the dedicated API for setting a policy on an index
after it was created. The idea is that this is best done as an
index setting update. The same could be said about the remove_policy
API.

This commit removes the dedicated API command to remove a policy
from an index. Update Settings API should be used instead to
set `index.lifecycle.name` to null or the empty string.
@talevy talevy added WIP :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Oct 24, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@colings86
Copy link
Contributor

Note tere is already an issue for this here: #34310

@talevy
Copy link
Contributor Author

talevy commented Oct 24, 2018

thanks @colings86, forgot!

@colings86
Copy link
Contributor

I don't think we should remove this API unless we have implemented #34310 so the other ILM state is removed from the index at the same time. Without this we will have no way of cleaning up the ILM state for an index completely so I think this API should remain for now.

We should tackle #34310 at a later date since it is non-trivial because it requires the index settings consumers to be changed to be aware of the index they are acting on.

@colings86 colings86 closed this Oct 24, 2018
@colings86 colings86 reopened this Oct 24, 2018
@talevy talevy closed this Oct 24, 2018
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 WIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants