Skip to content

Commit

Permalink
add splitAndScatterRegions in pdpb.proto (#826)
Browse files Browse the repository at this point in the history
* add splitAndScatterRegions in pdpb.proto

* add flag waitScatterRegionsFinish

Co-authored-by: Song Gao <disxiaofei@163.com>
  • Loading branch information
hzh0425 and Yisaer authored Nov 3, 2021
1 parent b7d07d1 commit 178a788
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion proto/pdpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ service PD {

rpc SplitRegions(SplitRegionsRequest) returns (SplitRegionsResponse) {}

rpc SplitAndScatterRegions(SplitAndScatterRegionsRequest) returns (SplitAndScatterRegionsResponse) {}

rpc GetDCLocationInfo(GetDCLocationInfoRequest) returns (GetDCLocationInfoResponse) {}
}

Expand Down Expand Up @@ -529,7 +531,7 @@ message StoreStats {
// Score that represents the speed of the store, ranges in [1, 100], lower is better.
uint64 slow_score = 22;
// Damaged regions on the store that need to be removed by PD.
repeated uint64 damaged_regions_id = 23;
repeated uint64 damaged_regions_id = 23;
}

message PeerReport {
Expand Down Expand Up @@ -698,6 +700,21 @@ message SplitRegionsResponse {
repeated uint64 regions_id = 3;
}

message SplitAndScatterRegionsRequest {
RequestHeader header = 1;
repeated bytes split_keys = 2;
string group = 3;
uint64 retry_limit = 4;
bool waitScatterRegionsFinish = 5;
}

message SplitAndScatterRegionsResponse {
ResponseHeader header = 1;
uint64 split_finished_percentage = 2;
uint64 scatter_finished_percentage = 3;
repeated uint64 regions_id = 4;
}

message GetDCLocationInfoRequest {
RequestHeader header = 1;
string dc_location = 2;
Expand Down

0 comments on commit 178a788

Please sign in to comment.