-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Adds an API to remove ILM from an index completely #31358
Adds an API to remove ILM from an index completely #31358
Conversation
Pinging @elastic/es-core-infra |
{ | ||
"xpack.index_lifecycle.remove_policy": { | ||
"documentation": "http://www.elastic.co/guide/en/index_lifecycle/current/index_lifecycle.html", | ||
"methods": [ "PUT" ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a DELETE and we drop the remove_policy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind, that feels wrong after I typed (and sent it)
Overall LGTM, will wait for a merge from index-lifecycle to give it another look |
The removal will only happen if the index is not in the shrink action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Adds an API to remove ILM from an index completely The removal will only happen if the index is not in the shrink action * Fixes compile issues
The removal will only happen if the index is not in the shrink action
I am not convinced the endpoint
PUT {index}/_index_lifecycle/remove_policy
is right here. It feels like this should be an endpoint with a DELETE method. I also think it might be misleading since the endpoint does more than remove the policy, it removes all ILM settings from the index. So maybe it would be better to have the endpoint asDELETE {index}/_index_lifecycle
instead?I also wonder if the set policy endpoint should actually be
PUT {index}/_index_lifecycle/policy/{policy_name}
instead of the currentPUT
{index}/_index_lifecycle/set_policy/{policy_name}`?