-
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
Rollover API failing with 400 in case settings name don't have "index." prefix or "index" section in json #53388
Comments
Pinging @elastic/es-core-features (:Core/Features/ILM+SLM) |
Hi Team, If we are aligned on the issue and the fix. I can pick it up. |
Thanks for using ILM and reporting this bug @shwetathareja |
Sure andreidan@, Sorry for the delay. I will pick it up. |
Talked to @shwetathareja about this opened issue and wanted to pickup the implementation of it. |
It fixes the issue elastic#53388 by normalizing prefix at index creation request itself
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Lee Hinman <[email protected]> It fixes the issue #53388 by normalizing prefix at index creation request itself
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Lee Hinman <[email protected]> It fixes the issue elastic#53388 by normalizing prefix at index creation request itself
* Normalized prefix for rollover API (#57271) Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Lee Hinman <[email protected]> It fixes the issue #53388 by normalizing prefix at index creation request itself * Fix compilation for backport Co-authored-by: Gaurav Chandani <[email protected]>
Closed by #57271. |
Closing for real this time |
Elasticsearch version (
bin/elasticsearch --version
): 7.6Plugins installed: []
Description of the problem including expected versus actual behavior:
Rollover API takes index settings as input parameters. The settings can specified as one of the below options:
But, with this PR. the #3 option doesn't work and throws error as
Fix:
There is normalize and settings validation logic in onlyCreateIndex method and after refactoring this code is not getting triggered during rollover flow which calls applyCreateIndexRequest method.
The normalize call should also run during rollover flow otherwise it breaks the expected behavior.
Steps to reproduce:
Tried running this in 7.5 with no issue and rollover works as expected.
The text was updated successfully, but these errors were encountered: