Skip to content
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

Prevent existing nodes from changing token ownership #136

Open
a1exsh opened this issue May 19, 2017 · 0 comments
Open

Prevent existing nodes from changing token ownership #136

a1exsh opened this issue May 19, 2017 · 0 comments

Comments

@a1exsh
Copy link
Collaborator

a1exsh commented May 19, 2017

Due to change in data directory layout in older versions of planb-cassandra, while updating the docker image a node may lose its system keyspace. What happens in this case is that the node joins the ring, but without the old tokens or data.

We should not start the Cassandra server if there is no data directory (no data/system), unless we know this is the new node. We can achieve that by providing a hint in the environment when creating new node in create_cluster. The update_cluster will take care to remove the hint before restarting the node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant