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
Restore process can restore incompatible minimum_master_nodes
setting
#8830
Comments
Agreed it's a pain. This is already fixed in #8321 , which will be released with 1.5.0 I'm closing this, but if you feel something is missing from that PR, please feel free to re-open. |
Excellent. Thanks much @bleskes! |
@bleskes it just occurred to me that restoring global state from a snapshot can update persistent settings:
@imotov what happens if a snapshot restores a persistent setting for |
@grantr yes, this indeed can be an issue. Thanks! |
minimum_master_nodes
incorrectly can stop the clusterminimum_master_nodes
setting
Thanks for fixing this @imotov! |
If I have 3 masters and accidentally set
minimum_master_nodes
to 4 dynamically, the cluster will stop. While the cluster is stopped, there's no way to update settings, so I have to do a full restart.If I updated a persistent setting, then not even a full restart will fix the issue. I have to manually edit cluster state.
You could get out of this situation by adding master nodes until the new minimum is reached, but that's not a complete solution because I might have fat fingered
minimum_master_nodes
to 100 or something like that.I think it'd be worth adding some validation to ensure that an update to
minimum_master_nodes
won't accidentally put the cluster in an unrecoverable state.The text was updated successfully, but these errors were encountered: