Skip to content

Commit

Permalink
mpp: support returning regions that need retry (pingcap#751)
Browse files Browse the repository at this point in the history
* mpp: support return of region errors

* return region list

Co-authored-by: Zhuhe Fang <fzhedu@gmail.com>
  • Loading branch information
2 people authored and windtalker committed May 7, 2021
1 parent 39b8846 commit 76b14e4
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 46 deletions.
153 changes: 107 additions & 46 deletions pkg/mpp/mpp.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions proto/mpp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package mpp;

import "gogoproto/gogo.proto";
import "coprocessor.proto";
import "metapb.proto";

option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
Expand Down Expand Up @@ -31,6 +32,7 @@ message DispatchTaskRequest {
// Get response of DispatchTaskRequest.
message DispatchTaskResponse {
Error error = 1;
repeated metapb.Region retry_regions = 2;
}

// CancelTaskRequest closes the execution of a task.
Expand Down

0 comments on commit 76b14e4

Please sign in to comment.