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

api: add initialized flag in cluster status #1581

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

disksing
Copy link
Contributor

Signed-off-by: disksing [email protected]

What problem does this PR solve?

When initializing the cluster, PD needs to spend some time to add replica to the first region. If tidb-server is started before finish adding replica, the data may be written to simple replica.

What is changed and how it works?

cherry-pick #1555

Check List

Code changes

  • Has HTTP API interfaces change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to update the tidb-ansible repository
  • Need to be included in the release notes

* api: add initialized flag in cluster status

Signed-off-by: disksing <[email protected]>

* make loadBootstrapTime() better

Signed-off-by: disksing <[email protected]>
@disksing
Copy link
Contributor Author

/rebuild

@nolouch nolouch merged commit 42e6e08 into tikv:release-3.0 Jun 14, 2019
@disksing disksing deleted the init-flag-cp branch June 14, 2019 10:35
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.

3 participants