-
Notifications
You must be signed in to change notification settings - Fork 113
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
[BUG] when index rollover occurs, alias filter is not copied and deleted #496
Comments
Hi. I did short investigation re the problem you described. The same thing is happening once you try to do a rollover directly against the cluster (without creation of the policy with rollover step) ie.
So I would say it's rather behavior of the OpenSearch itself then a behavior of index-management plugin. |
Adding context that as of May of 2023 - there is still a known issue in OpenSearch, based upon the original post above. In Code Block 3 above, when the template is being created, the code is setting the rollover alias with this command: Whilst this will return an acknowledged/true, and whilst it will roll over the first time, this rollover alias will NOT carry forward to the first rolled over index. If, however, you replace the 'plugins.' prefix with 'opendistro.', then the rollover alias will copy forward in subsequent indices that are created. So replacing it with this line, and your rollover alias will carry forward: This suggest that 'plugins.' is deprecated, so it should return either a false or at least a deprecation warning that the path is 'opendistro.' versus 'plugins.' As it is, it not only accepts the command, but if present, the rollover function will still acknowledge it. It is just a setting that is no longer carried into the new index, so only a single rollover will succeed. |
On what version are you reproducing this? I tried managed 2.5 and opensource 3.0(main branch) and couldn't reproduce it. Regarding index templates, creating index_template will not do anything to any existing index. It will affect only indices matching patterns, created after this index_template. |
What is the bug?
Create an index rollover policy and associate to index (with index template).
When creating the first index, the index contains an alias for rollover. This alias also contains a filter.
After rollover, additional index is created as expected, but the the filter is missing in the alias of the new index.
Moreover, the alias filter in the original index (before rollover) is also deleted.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Alias filter should be copied to new index after rollover.
Alias filter should not be deleted from original alias and index.
What is your host/environment?
The text was updated successfully, but these errors were encountered: