diff --git a/pkg/schedulingpb/schedulingpb.pb.go b/pkg/schedulingpb/schedulingpb.pb.go index 8dd87944e..df2349009 100644 --- a/pkg/schedulingpb/schedulingpb.pb.go +++ b/pkg/schedulingpb/schedulingpb.pb.go @@ -1114,6 +1114,124 @@ func (m *GetOperatorResponse) GetKind() []byte { return nil } +type AskBatchSplitRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + SplitCount uint32 `protobuf:"varint,3,opt,name=split_count,json=splitCount,proto3" json:"split_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } +func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitRequest) ProtoMessage() {} +func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{14} +} +func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskBatchSplitRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AskBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitRequest.Merge(m, src) +} +func (m *AskBatchSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *AskBatchSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AskBatchSplitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AskBatchSplitRequest proto.InternalMessageInfo + +func (m *AskBatchSplitRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *AskBatchSplitRequest) GetRegion() *metapb.Region { + if m != nil { + return m.Region + } + return nil +} + +func (m *AskBatchSplitRequest) GetSplitCount() uint32 { + if m != nil { + return m.SplitCount + } + return 0 +} + +type AskBatchSplitResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Ids []*pdpb.SplitID `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } +func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } +func (*AskBatchSplitResponse) ProtoMessage() {} +func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b4bfd49510230d67, []int{15} +} +func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AskBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AskBatchSplitResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AskBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitResponse.Merge(m, src) +} +func (m *AskBatchSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *AskBatchSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AskBatchSplitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AskBatchSplitResponse proto.InternalMessageInfo + +func (m *AskBatchSplitResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *AskBatchSplitResponse) GetIds() []*pdpb.SplitID { + if m != nil { + return m.Ids + } + return nil +} + func init() { proto.RegisterEnum("schedulingpb.ErrorType", ErrorType_name, ErrorType_value) proto.RegisterType((*RequestHeader)(nil), "schedulingpb.RequestHeader") @@ -1130,93 +1248,100 @@ func init() { proto.RegisterType((*SplitRegionsResponse)(nil), "schedulingpb.SplitRegionsResponse") proto.RegisterType((*GetOperatorRequest)(nil), "schedulingpb.GetOperatorRequest") proto.RegisterType((*GetOperatorResponse)(nil), "schedulingpb.GetOperatorResponse") + proto.RegisterType((*AskBatchSplitRequest)(nil), "schedulingpb.AskBatchSplitRequest") + proto.RegisterType((*AskBatchSplitResponse)(nil), "schedulingpb.AskBatchSplitResponse") } func init() { proto.RegisterFile("schedulingpb.proto", fileDescriptor_b4bfd49510230d67) } var fileDescriptor_b4bfd49510230d67 = []byte{ - // 1293 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xc6, 0x7f, 0x1a, 0xbf, 0xdd, 0x38, 0xee, 0x24, 0x4d, 0xad, 0x84, 0x86, 0x64, 0x5b, - 0x4a, 0xca, 0x1f, 0x17, 0xdc, 0x0a, 0x71, 0xe1, 0x90, 0x26, 0x16, 0xb5, 0x92, 0x26, 0x61, 0xec, - 0x24, 0x02, 0x09, 0xad, 0x36, 0xde, 0x57, 0x7b, 0x15, 0x7b, 0x77, 0x3b, 0x33, 0x4e, 0x70, 0x39, - 0x70, 0xe7, 0x13, 0x70, 0x80, 0x3b, 0x9f, 0x82, 0x33, 0x07, 0x24, 0x38, 0x72, 0x03, 0x95, 0x2f, - 0x82, 0xe6, 0x8f, 0x1d, 0xaf, 0x13, 0xa5, 0x48, 0x01, 0x4e, 0x99, 0x79, 0xef, 0xf7, 0xde, 0x9b, - 0xf9, 0xbd, 0xdf, 0x3c, 0x6f, 0x80, 0xf0, 0x56, 0x07, 0x83, 0x7e, 0x37, 0x8c, 0xda, 0xc9, 0x71, - 0x25, 0x61, 0xb1, 0x88, 0x89, 0x33, 0x6e, 0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xa0, - 0x4d, 0x07, 0xac, 0xcb, 0x5d, 0x01, 0xb7, 0x1a, 0x22, 0x66, 0xf2, 0xf2, 0x4c, 0x1c, 0xa3, 0x2f, - 0x0c, 0xb5, 0xe4, 0x11, 0xe4, 0x3b, 0x8a, 0x10, 0x95, 0xdf, 0xae, 0x2e, 0xa7, 0x4f, 0x9d, 0xea, - 0x00, 0x35, 0x50, 0x72, 0x1f, 0x72, 0x5c, 0xf8, 0x82, 0x1b, 0x72, 0x4a, 0x15, 0xd5, 0x6b, 0x55, - 0xa0, 0x21, 0xed, 0x54, 0xbb, 0xdd, 0x33, 0x58, 0x9c, 0xac, 0xaa, 0x7b, 0x40, 0x1e, 0x4f, 0x94, - 0x7d, 0x63, 0xb2, 0xec, 0x78, 0xaf, 0x46, 0x75, 0xdf, 0x86, 0xb9, 0x61, 0xcf, 0x4e, 0x91, 0xf1, - 0x30, 0x8e, 0x0c, 0x77, 0x45, 0x63, 0x3e, 0xd4, 0x56, 0xf7, 0xd7, 0x2c, 0x2c, 0x52, 0x6c, 0x87, - 0x71, 0xf4, 0x6f, 0x5d, 0x38, 0xcf, 0x54, 0x3a, 0x73, 0xe3, 0x62, 0xc5, 0x48, 0x55, 0x17, 0xa1, - 0xc6, 0x4b, 0xee, 0x41, 0xbe, 0xab, 0x93, 0x67, 0x14, 0xce, 0x19, 0xe2, 0xf6, 0x51, 0x66, 0xd3, - 0x3e, 0xd9, 0x51, 0x81, 0xac, 0x57, 0xce, 0xaa, 0xfe, 0xa9, 0x35, 0xa9, 0x00, 0x04, 0xf1, 0x59, - 0xe4, 0x25, 0x88, 0x8c, 0x97, 0x73, 0xab, 0x99, 0x75, 0xbb, 0x3a, 0xa7, 0x79, 0x95, 0xb1, 0x9a, - 0xd6, 0x82, 0x84, 0xc8, 0x2d, 0x27, 0x1f, 0xc2, 0x6c, 0x82, 0x51, 0x10, 0x46, 0x6d, 0x13, 0x92, - 0x57, 0x21, 0xe9, 0x82, 0x8e, 0x81, 0xe8, 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b3, 0xf6, 0x02, 0x3b, 0x97, - 0x8e, 0x30, 0x77, 0x8a, 0x34, 0xc1, 0x1e, 0x13, 0x32, 0x59, 0x4d, 0x87, 0x5d, 0x7c, 0x4c, 0x4b, - 0x6b, 0x57, 0x20, 0x86, 0x59, 0x9f, 0xdc, 0xff, 0xfd, 0xc7, 0x19, 0xeb, 0xe7, 0x57, 0x2b, 0xd6, - 0x6f, 0xaf, 0x56, 0xac, 0x3f, 0x5f, 0xad, 0x58, 0xdf, 0xfd, 0xb5, 0x32, 0x05, 0xa5, 0x98, 0xb5, - 0x2b, 0x22, 0x3c, 0x39, 0xad, 0x9c, 0x9c, 0xaa, 0xff, 0x6c, 0x8e, 0xf3, 0xea, 0xcf, 0xa3, 0xbf, - 0x03, 0x00, 0x00, 0xff, 0xff, 0x74, 0xbd, 0xdd, 0xce, 0x45, 0x0d, 0x00, 0x00, + // 1366 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xc6, 0x1f, 0x8d, 0xdf, 0xae, 0x3f, 0x3a, 0x71, 0x53, 0xcb, 0xa1, 0x69, 0xb2, 0x2d, + 0x25, 0xe5, 0xc3, 0x05, 0xb7, 0x42, 0x5c, 0x38, 0xb8, 0x89, 0x45, 0xad, 0xa4, 0x49, 0x18, 0x3b, + 0x89, 0xa8, 0x84, 0x56, 0x1b, 0xef, 0xd4, 0x5e, 0xc5, 0xde, 0xdd, 0xce, 0x8c, 0x13, 0x5c, 0x0e, + 0xdc, 0x39, 0x73, 0xe0, 0x00, 0x77, 0xfe, 0x07, 0x24, 0xce, 0x1c, 0x90, 0xe0, 0xc8, 0x11, 0x95, + 0x7f, 0x04, 0xcd, 0x87, 0x1d, 0xef, 0x26, 0x4a, 0x91, 0x02, 0x3d, 0x65, 0xe6, 0xbd, 0xdf, 0x7b, + 0x33, 0xef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, 0xd3, 0x00, 0xed, 0x69, 0x15, 0xe8, 0x4b, 0x28, + 0xc4, 0x3f, 0x11, 0xd1, 0x9d, 0x78, 0x91, 0x17, 0x7e, 0xb6, 0x56, 0xef, 0x5e, 0x0e, 0x52, 0xbc, + 0xd8, 0x73, 0xc8, 0x83, 0x62, 0xe2, 0x57, 0x1b, 0xdd, 0x4d, 0x92, 0x78, 0xd1, 0x67, 0x62, 0xf5, + 0xed, 0xd7, 0xa0, 0x26, 0x27, 0xac, 0x1b, 0x1f, 0x1a, 0xe8, 0x10, 0xac, 0xd9, 0xf1, 0x80, 0xd6, + 0x12, 0xb7, 0x3b, 0x3f, 0xc7, 0xaa, 0xf6, 0x65, 0x90, 0xe9, 0xf5, 0x05, 0x3b, 0xb1, 0x31, 0x7c, + 0x8e, 0x9d, 0x8b, 0x7e, 0x72, 0xce, 0xb1, 0x73, 0xe1, 0x24, 0xb7, 0xe7, 0x50, 0x07, 0xcc, 0x99, + 0xf7, 0x8c, 0x56, 0xe3, 0x61, 0xe7, 0x67, 0x4a, 0x75, 0xed, 0x12, 0xc4, 0x34, 0xeb, 0x33, 0xc8, + 0xc7, 0xe4, 0x8c, 0x12, 0xb5, 0x5e, 0xf4, 0x02, 0xab, 0x77, 0x2e, 0xc5, 0x4c, 0x72, 0x3f, 0xbe, + 0xf7, 0xe7, 0x4f, 0x0b, 0xc6, 0xaf, 0xaf, 0x56, 0x8c, 0x3f, 0x5e, 0xad, 0x18, 0x7f, 0xbd, 0x5a, + 0x31, 0xbe, 0xff, 0x7b, 0x65, 0x0e, 0x4a, 0x21, 0xed, 0xd5, 0xb8, 0x7f, 0x7c, 0x52, 0x3b, 0x3e, + 0x91, 0xff, 0x3c, 0x1e, 0x65, 0xe5, 0x9f, 0x87, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x51, 0x83, + 0x88, 0x0a, 0xa8, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1236,6 +1361,7 @@ type SchedulingClient interface { SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) ScatterRegions(ctx context.Context, in *ScatterRegionsRequest, opts ...grpc.CallOption) (*ScatterRegionsResponse, error) GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) + AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) } type schedulingClient struct { @@ -1313,6 +1439,15 @@ func (c *schedulingClient) GetOperator(ctx context.Context, in *GetOperatorReque return out, nil } +func (c *schedulingClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) { + out := new(AskBatchSplitResponse) + err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/AskBatchSplit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // SchedulingServer is the server API for Scheduling service. type SchedulingServer interface { StoreHeartbeat(context.Context, *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) @@ -1320,6 +1455,7 @@ type SchedulingServer interface { SplitRegions(context.Context, *SplitRegionsRequest) (*SplitRegionsResponse, error) ScatterRegions(context.Context, *ScatterRegionsRequest) (*ScatterRegionsResponse, error) GetOperator(context.Context, *GetOperatorRequest) (*GetOperatorResponse, error) + AskBatchSplit(context.Context, *AskBatchSplitRequest) (*AskBatchSplitResponse, error) } // UnimplementedSchedulingServer can be embedded to have forward compatible implementations. @@ -1341,6 +1477,9 @@ func (*UnimplementedSchedulingServer) ScatterRegions(ctx context.Context, req *S func (*UnimplementedSchedulingServer) GetOperator(ctx context.Context, req *GetOperatorRequest) (*GetOperatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOperator not implemented") } +func (*UnimplementedSchedulingServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") +} func RegisterSchedulingServer(s *grpc.Server, srv SchedulingServer) { s.RegisterService(&_Scheduling_serviceDesc, srv) @@ -1444,6 +1583,24 @@ func _Scheduling_GetOperator_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _Scheduling_AskBatchSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AskBatchSplitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulingServer).AskBatchSplit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/schedulingpb.Scheduling/AskBatchSplit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulingServer).AskBatchSplit(ctx, req.(*AskBatchSplitRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Scheduling_serviceDesc = grpc.ServiceDesc{ ServiceName: "schedulingpb.Scheduling", HandlerType: (*SchedulingServer)(nil), @@ -1464,6 +1621,10 @@ var _Scheduling_serviceDesc = grpc.ServiceDesc{ MethodName: "GetOperator", Handler: _Scheduling_GetOperator_Handler, }, + { + MethodName: "AskBatchSplit", + Handler: _Scheduling_AskBatchSplit_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -2376,6 +2537,115 @@ func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SplitCount != 0 { + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SplitCount)) + i-- + dAtA[i] = 0x18 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintSchedulingpb(dAtA []byte, offset int, v uint64) int { offset -= sovSchedulingpb(v) base := offset @@ -2776,6 +3046,51 @@ func (m *GetOperatorResponse) Size() (n int) { return n } +func (m *AskBatchSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovSchedulingpb(uint64(l)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovSchedulingpb(uint64(l)) + } + if m.SplitCount != 0 { + n += 1 + sovSchedulingpb(uint64(m.SplitCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AskBatchSplitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovSchedulingpb(uint64(l)) + } + if len(m.Ids) > 0 { + for _, e := range m.Ids { + l = e.Size() + n += 1 + l + sovSchedulingpb(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func sovSchedulingpb(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5240,6 +5555,269 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AskBatchSplitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AskBatchSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchedulingpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchedulingpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Region == nil { + m.Region = &metapb.Region{} + } + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitCount", wireType) + } + m.SplitCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SplitCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSchedulingpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchedulingpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AskBatchSplitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AskBatchSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchedulingpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulingpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchedulingpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulingpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ids = append(m.Ids, &pdpb.SplitID{}) + if err := m.Ids[len(m.Ids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchedulingpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchedulingpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipSchedulingpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/proto/schedulingpb.proto b/proto/schedulingpb.proto index 95fa40a9b..83b7de467 100644 --- a/proto/schedulingpb.proto +++ b/proto/schedulingpb.proto @@ -23,6 +23,8 @@ service Scheduling { rpc ScatterRegions(ScatterRegionsRequest) returns (ScatterRegionsResponse) {} rpc GetOperator(GetOperatorRequest) returns (GetOperatorResponse) {} + + rpc AskBatchSplit(AskBatchSplitRequest) returns (AskBatchSplitResponse) {} } message RequestHeader { @@ -179,4 +181,17 @@ message GetOperatorResponse { bytes desc = 3; pdpb.OperatorStatus status = 4; bytes kind = 5; -} \ No newline at end of file +} + +message AskBatchSplitRequest { + RequestHeader header = 1; + + metapb.Region region = 2; + uint32 split_count = 3; +} + +message AskBatchSplitResponse { + ResponseHeader header = 1; + + repeated pdpb.SplitID ids = 2; +} diff --git a/scripts/proto.lock b/scripts/proto.lock index 3bc78ae75..0ba45430c 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -19275,6 +19275,42 @@ "type": "bytes" } ] + }, + { + "name": "AskBatchSplitRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "region", + "type": "metapb.Region" + }, + { + "id": 3, + "name": "split_count", + "type": "uint32" + } + ] + }, + { + "name": "AskBatchSplitResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + }, + { + "id": 2, + "name": "ids", + "type": "pdpb.SplitID", + "is_repeated": true + } + ] } ], "services": [ @@ -19307,6 +19343,11 @@ "name": "GetOperator", "in_type": "GetOperatorRequest", "out_type": "GetOperatorResponse" + }, + { + "name": "AskBatchSplit", + "in_type": "AskBatchSplitRequest", + "out_type": "AskBatchSplitResponse" } ] }