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

balance: prevent access nil store when recovering cluster #651

Merged
merged 3 commits into from
May 31, 2017

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented May 31, 2017

we may access nil store when recovering cluster. this PR fix it.
PTAL @disksing @siddontang

@disksing
Copy link
Contributor

With this fix, if a store never start after recover, then the replica will never be sufficient?

@siddontang
Copy link
Contributor

mean that we may panic before?

@nolouch
Copy link
Contributor Author

nolouch commented May 31, 2017

@disksing now recover just work for lost the PD data, all TiKV must restart after recovering the PD.
@siddontang yep

@disksing
Copy link
Contributor

LGTM.

@siddontang
Copy link
Contributor

any test ?

Copy link
Contributor

@siddontang siddontang left a comment

Choose a reason for hiding this comment

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

LGTM

@siddontang
Copy link
Contributor

PTAL @disksing

@disksing
Copy link
Contributor

LGTM

@nolouch nolouch merged commit 8bf4a6e into master May 31, 2017
@nolouch nolouch deleted the shuning/recover-fix branch May 31, 2017 09:08
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