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

proto: compatible with proto3. #919

Merged
merged 3 commits into from
Jan 15, 2018
Merged

Conversation

disksing
Copy link
Contributor

Suppress errors when a newer version of tikv (probably v1.1) connects to pd v1.0.x.
Related issue: tikv/tikv#2681

@@ -389,8 +389,8 @@ func (s *Server) AskSplit(ctx context.Context, request *pdpb.AskSplitRequest) (*
if cluster == nil {
return &pdpb.AskSplitResponse{Header: s.notBootstrappedHeader()}, nil
}
if request.GetRegion().GetStartKey() == nil {
return nil, errors.New("missing region start key for split")
if request.GetRegion() == nil {
Copy link
Member

Choose a reason for hiding this comment

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

Seems no test covers it.

@BusyJay
Copy link
Member

BusyJay commented Jan 15, 2018

LGTM

@disksing
Copy link
Contributor Author

/run-all-tests tidb=release-1.0 tikv=release-1.0 tidb-test=release-1.0

@disksing
Copy link
Contributor Author

PTAL @Connor1996 @siddontang

Copy link
Contributor

@nolouch nolouch 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 9522bba into tikv:release-1.0 Jan 15, 2018
@disksing disksing deleted the split-check branch January 15, 2018 07:10
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