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

db/cluster: stable cluster start up #19

Merged
merged 3 commits into from Nov 7, 2018

Conversation

overvenus
Copy link
Member

It waits pd before starting tikv to avoid tikv start up failure. Also it fixs a bug that cause start-stop-daemon failure.

if err == nil {
break
}
log.Println("wait pd cluster...")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting

@@ -138,6 +138,17 @@ func (cluster *Cluster) start(ctx context.Context, node string, inSetUp bool) er
return fmt.Errorf("fail to start pd on node %s", node)
}

// Before starting TiKV, we should ensure PD cluster is ready.
for {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is a bug for PD, we may wait forever.

@siddontang siddontang merged commit 9ccc0f0 into pingcap:master Nov 7, 2018
tabokie pushed a commit to tabokie/chaos that referenced this pull request May 17, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants