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

Do the bootstrap only in the owner node. #10017

Closed
winkyao opened this issue Apr 3, 2019 · 0 comments
Closed

Do the bootstrap only in the owner node. #10017

winkyao opened this issue Apr 3, 2019 · 0 comments
Assignees

Comments

@winkyao
Copy link
Contributor

winkyao commented Apr 3, 2019

We will do some DDL and DML works when the cluster is not bootstrapped.

https://github.com/pingcap/tidb/blob/master/session/bootstrap.go#L252

But if we start multi tidb notes on a new cluster, it will do the same bootstrap works in all the notes. Which will cause write conflict and some errors.

Actually, the DDL is only handled by the owner note, so we can figure out whether the node is the owner, and then do the bootstrap, otherwise wait for the cluster to upgrade/bootstrap to the expected version.

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

3 participants