Skip to content

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

Merged
colings86 merged 2 commits intoelastic:index-lifecyclefrom
colings86:ilm/remove-policy
Jun 21, 2018
Merged

Adds an API to remove ILM from an index completely#31358
colings86 merged 2 commits intoelastic:index-lifecyclefrom
colings86:ilm/remove-policy

Conversation

@colings86
Copy link
Copy Markdown
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 DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. labels Jun 15, 2018
@colings86 colings86 self-assigned this Jun 15, 2018
@colings86 colings86 requested review from jasontedor and talevy June 15, 2018 10:19
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants