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

Adds an API to remove ILM from an index completely #31358

Merged
merged 2 commits into from
Jun 21, 2018
Merged

Adds an API to remove ILM from an index completely #31358

merged 2 commits into from
Jun 21, 2018

Conversation

colings86
Copy link
Contributor

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 as DELETE {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 current PUT {index}/_index_lifecycle/set_policy/{policy_name}`?

@colings86 colings86 added review :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jun 15, 2018
@colings86 colings86 self-assigned this Jun 15, 2018
@elasticmachine
Copy link
Collaborator

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" ],
Copy link
Contributor

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?

Copy link
Contributor

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)

@talevy
Copy link
Contributor

talevy commented Jun 19, 2018

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
Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

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

LGTM

@colings86 colings86 merged commit dec6d49 into elastic:index-lifecycle Jun 21, 2018
@colings86 colings86 deleted the ilm/remove-policy branch June 21, 2018 08:18
jasontedor pushed a commit that referenced this pull request Aug 17, 2018
* 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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants