Skip to content

[raft] Add bootstrap flag - #1798

Open
MariemBaccari wants to merge 1 commit into
interuss:masterfrom
Orbitalize:add_bootstrap_flag
Open

MariemBaccari wants to merge 1 commit into
interuss:masterfrom
Orbitalize:add_bootstrap_flag

Conversation

@MariemBaccari

Copy link
Copy Markdown
Contributor

Currently, if a node starts with an empty data directory, it is automatically considered as bootstrapping a new cluster.
A node losing its data directory and being "restarted" this way can cause issues described in #1793. This isn't a use-case we account for but it is best to restrict this path on the core-service side.
This PR addresses that by adding a new --raft_bootstrap flag so that the node refuses to start if its data directory is empty and the cluster already exists.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant