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
Index Settings: Auto expand replica enabled indices ignore number of replica updates without telling the user #27835
Comments
I kind of wonder if we should just deprecate |
@pickypg If we did that, what would be reported on inspection of the index settings |
@GlenRSmith The value that is set, which could continue to default to |
@pickypg Currently, if you set auto_expand_replicas, number_of_replicas will report the current target count. If these are merged, number_of_replicas will have to report either the expand setting or the target, as is currently reported, so it seems to me that such a change will result in information loss. |
@GlenRSmith I think it's a bug that the value reported by It's easy to see the number of allocated replicas via |
I see that when So I agree with @pickypg and I also think it's better to merge |
I'm labeling this |
I'm relabeling this issue for the distributed team to decide any future action on, since this is not a settings infrastructure issue. |
Pinging @elastic/es-distributed (Team:Distributed) |
Today if you update `index.number_of_replicas` on indices that have `index.auto_expand_replicas` set then the update is accepted but silently ignored. Lenience like this is surprising. This commit deprecates this behaviour so that it can be removed in a future release. Relates elastic#27835
Elasticsearch version (
bin/elasticsearch --version
): 6.0.0Description of the problem including expected versus actual behavior:
Steps to reproduce:
Ran this on a two node cluster (so auto expanding works)
The behaviour looks correct to me, but returning an error on the update indices settings call makes sense to me.
The text was updated successfully, but these errors were encountered: