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

server: use ALREADY_BOOTSTRAPPED error type. #593

Merged
merged 2 commits into from Apr 1, 2017

Conversation

disksing
Copy link
Contributor

@disksing disksing commented Apr 1, 2017

No description provided.

@@ -90,7 +90,7 @@ func (s *Server) Bootstrap(ctx context.Context, request *pdpb.BootstrapRequest)
cluster := s.GetRaftCluster()
if cluster != nil {
err := &pdpb.Error{
Type: pdpb.ErrorType_UNKNOWN,
Type: pdpb.ErrorType_ALREADY_BOOTSTRAPPED,
Copy link
Contributor

Choose a reason for hiding this comment

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

any test in PD?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. But I have tested it with tikv-server.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add it in PD

@siddontang
Copy link
Contributor

LGTM

Copy link
Contributor

@andelf andelf left a comment

Choose a reason for hiding this comment

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

LGTM

@disksing disksing merged commit 936f7b5 into master Apr 1, 2017
@disksing disksing deleted the disksing/already-bootstrapped branch April 1, 2017 06:31
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

3 participants