Skip to content

fix GET _ilm response with uninitialized ILM metadata#34881

Merged
talevy merged 1 commit intoelastic:index-lifecyclefrom
talevy:ilm-unitialized-get
Oct 25, 2018
Merged

fix GET _ilm response with uninitialized ILM metadata#34881
talevy merged 1 commit intoelastic:index-lifecyclefrom
talevy:ilm-unitialized-get

Conversation

@talevy
Copy link
Copy Markdown
Contributor

@talevy talevy commented Oct 25, 2018

ILM would return a resource-not-found exception when requesting policies
while the IndexLifecycleMetaData is not initialized. The behavior here
should not be as extreme since it is not the user's fault.

This commit changes the behavior so that it succeeds and returns no policies
when no policy names are explicitly specified, otherwise keep the same behavior
of throwing an exception

ILM would return a resource-not-found exception when requesting policies
while the IndexLifecycleMetaData is not initialized. The behavior here
should not be as extreme since it is not the user's fault.

This commit changes the behavior so that it succeeds and returns no policies
when no policy names are explicitely specified, otherwise keep the same behavior
of throwing an exception
@talevy talevy added the :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. label Oct 25, 2018
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM

@talevy
Copy link
Copy Markdown
Contributor Author

talevy commented Oct 25, 2018

thanks for the review @dakrone!

@talevy talevy merged commit f6ce935 into elastic:index-lifecycle Oct 25, 2018
@talevy talevy deleted the ilm-unitialized-get branch October 25, 2018 23:00
talevy added a commit that referenced this pull request Oct 25, 2018
ILM would return a resource-not-found exception when requesting policies
while the IndexLifecycleMetaData is not initialized. The behavior here
should not be as extreme since it is not the user's fault.

This commit changes the behavior so that it succeeds and returns no policies
when no policy names are explicitely specified, otherwise keep the same behavior
of throwing an exception
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