From 96c40585233f176393213dbd4c04d76259bad8f9 Mon Sep 17 00:00:00 2001 From: qupeng Date: Mon, 4 Dec 2023 17:38:12 +0800 Subject: [PATCH] add a new error server_is_busy for cdc (#1211) Signed-off-by: qupeng --- pkg/cdcpb/cdcpb.pb.go | 266 ++++++++++++++++++++++++++---------------- proto/cdcpb.proto | 1 + scripts/proto.lock | 5 + 3 files changed, 170 insertions(+), 102 deletions(-) diff --git a/pkg/cdcpb/cdcpb.pb.go b/pkg/cdcpb/cdcpb.pb.go index 69dff8a59..c8c92816a 100644 --- a/pkg/cdcpb/cdcpb.pb.go +++ b/pkg/cdcpb/cdcpb.pb.go @@ -342,6 +342,7 @@ type Error struct { DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest,proto3" json:"duplicate_request,omitempty"` Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility,proto3" json:"compatibility,omitempty"` ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch,proto3" json:"cluster_id_mismatch,omitempty"` + ServerIsBusy *errorpb.ServerIsBusy `protobuf:"bytes,7,opt,name=server_is_busy,json=serverIsBusy,proto3" json:"server_is_busy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -422,6 +423,13 @@ func (m *Error) GetClusterIdMismatch() *ClusterIDMismatch { return nil } +func (m *Error) GetServerIsBusy() *errorpb.ServerIsBusy { + if m != nil { + return m.ServerIsBusy + } + return nil +} + type TxnInfo struct { StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` Primary []byte `protobuf:"bytes,2,opt,name=primary,proto3" json:"primary,omitempty"` @@ -1420,99 +1428,101 @@ func init() { func init() { proto.RegisterFile("cdcpb.proto", fileDescriptor_911209a1d38ef245) } var fileDescriptor_911209a1d38ef245 = []byte{ - // 1466 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0xb7, 0xfc, 0xdf, 0xcf, 0x76, 0xa2, 0x6c, 0x3b, 0xad, 0x6b, 0x86, 0x50, 0xdc, 0x16, 0xd2, - 0x32, 0xb8, 0xad, 0xa1, 0x1c, 0x3a, 0x43, 0x21, 0x8e, 0x5d, 0xe2, 0x89, 0xe3, 0x74, 0xb6, 0x4a, - 0x3a, 0xc3, 0x01, 0x8d, 0x22, 0x6d, 0x1c, 0x8d, 0x6d, 0xad, 0x2a, 0xad, 0x5d, 0xe7, 0xc6, 0x11, - 0x0e, 0xdc, 0x38, 0xf0, 0x11, 0xf8, 0x28, 0x1c, 0x39, 0xf6, 0xc8, 0x94, 0x8f, 0xc0, 0x17, 0x60, - 0xf6, 0xad, 0x24, 0xff, 0x69, 0x53, 0x66, 0x38, 0x69, 0xdf, 0xfb, 0xbd, 0x7d, 0xfb, 0xfe, 0x3f, - 0x41, 0xd9, 0x76, 0x6c, 0xff, 0xb4, 0xe9, 0x07, 0x5c, 0x70, 0x92, 0x43, 0xa2, 0xae, 0x07, 0xd6, - 0x99, 0x30, 0xed, 0x89, 0x13, 0x03, 0xf5, 0xca, 0x84, 0x09, 0x2b, 0xa1, 0xaa, 0x2c, 0x08, 0x78, - 0xb0, 0x20, 0x47, 0xb3, 0xc0, 0x4f, 0x94, 0xd4, 0xaf, 0x0e, 0xf9, 0x90, 0xe3, 0xf1, 0xbe, 0x3c, - 0x45, 0xdc, 0xcd, 0x60, 0x1a, 0x0a, 0x3c, 0x2a, 0x46, 0xa3, 0x0f, 0xf9, 0x7d, 0x66, 0x39, 0x2c, - 0x20, 0x1f, 0x02, 0xd8, 0xe3, 0x69, 0x28, 0x58, 0x60, 0xba, 0x4e, 0x4d, 0xbb, 0xa9, 0xed, 0x64, - 0x69, 0x29, 0xe2, 0xf4,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, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xae, 0xbe, 0x39, 0x6e, 0x5d, 0x0c, 0x00, 0x00, + // 1502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x72, 0xdb, 0xc8, + 0x11, 0x26, 0xf8, 0xcf, 0xe6, 0x8f, 0xa0, 0xb1, 0x63, 0xd3, 0x4c, 0x45, 0x71, 0x68, 0x3b, 0x91, + 0x9d, 0x0a, 0x6d, 0x33, 0x71, 0x0e, 0x4e, 0xc5, 0x89, 0x28, 0xd2, 0x11, 0x4b, 0x14, 0xe5, 0x1a, + 0x41, 0x72, 0x55, 0x0e, 0x41, 0x41, 0xc0, 0x88, 0x42, 0x91, 0xc4, 0xc0, 0xc0, 0x90, 0x26, 0x6f, + 0x39, 0xe6, 0x92, 0x5b, 0x0e, 0x79, 0x84, 0x7d, 0x92, 0xad, 0x3d, 0xee, 0xd1, 0xc7, 0x2d, 0xef, + 0x23, 0xec, 0x0b, 0x6c, 0x4d, 0x0f, 0x00, 0xfe, 0xd8, 0xf2, 0x56, 0xed, 0x89, 0xd3, 0xfd, 0xf5, + 0xf4, 0xf4, 0x7f, 0x83, 0x50, 0xb6, 0x1d, 0xdb, 0xbf, 0x6c, 0xf9, 0x01, 0x17, 0x9c, 0xe4, 0x90, + 0x68, 0xe8, 0x81, 0x75, 0x25, 0x4c, 0x7b, 0xea, 0xc4, 0x40, 0xa3, 0x32, 0x65, 0xc2, 0x4a, 0xa8, + 0x2a, 0x0b, 0x02, 0x1e, 0xac, 0xc8, 0xf1, 0x3c, 0xf0, 0x13, 0x25, 0x8d, 0xdb, 0x23, 0x3e, 0xe2, + 0x78, 0x7c, 0x2a, 0x4f, 0x11, 0x77, 0x27, 0x98, 0x85, 0x02, 0x8f, 0x8a, 0xd1, 0x1c, 0x40, 0xfe, + 0x88, 0x59, 0x0e, 0x0b, 0xc8, 0x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, 0x9a, 0x50, 0x9d, 0xba, 0x9e, 0x69, 0xf3, 0xe9, 0xd4, 0x45, 0x5c, 0x55, 0x54, 0x79, + 0xea, 0x7a, 0x87, 0xc8, 0x33, 0x42, 0x59, 0xf7, 0x2b, 0x3c, 0xa3, 0xea, 0xde, 0x8e, 0xc1, 0x87, + 0x50, 0x73, 0x43, 0x33, 0xe0, 0x93, 0x09, 0x73, 0xcc, 0x4b, 0xcb, 0x1e, 0x63, 0xbe, 0x8a, 0xb4, + 0xe2, 0x86, 0x14, 0x99, 0x1d, 0xcb, 0x1e, 0x37, 0x7f, 0x28, 0x40, 0xae, 0x37, 0x97, 0xc5, 0xfb, + 0xa5, 0x26, 0x22, 0xb7, 0x21, 0xe7, 0x7a, 0x0e, 0x5b, 0x44, 0x56, 0x28, 0x42, 0xf6, 0x73, 0x54, + 0x0b, 0xf2, 0x4e, 0x41, 0xf5, 0x73, 0xc4, 0xe9, 0x3b, 0xe4, 0x19, 0x14, 0x98, 0x27, 0x02, 0x97, + 0x85, 0x51, 0xb1, 0xc5, 0x89, 0xc6, 0x07, 0x5b, 0x3d, 0x85, 0x1d, 0xa5, 0x68, 0x2c, 0x46, 0x9e, + 0x40, 0xce, 0x72, 0xa6, 0xae, 0x17, 0x95, 0x16, 0xd9, 0x90, 0x3f, 0x90, 0xc8, 0x51, 0x8a, 0x2a, + 0x11, 0xf2, 0x10, 0x72, 0x98, 0xaf, 0xa8, 0x88, 0x2a, 0xb1, 0xac, 0xe4, 0x49, 0x29, 0x04, 0xc9, + 0x23, 0x28, 0x07, 0x2c, 0xe4, 0x93, 0x39, 0x73, 0x64, 0x90, 0x64, 0xb9, 0x64, 0x3b, 0xe9, 0xba, + 0x76, 0x94, 0xa2, 0x10, 0x03, 0x46, 0x48, 0x9e, 0x43, 0x71, 0xc2, 0xbd, 0x91, 0x29, 0x16, 0x5e, + 0xbd, 0xf8, 0x19, 0x5b, 0x07, 0xdc, 0x1b, 0x19, 0x0b, 0xf9, 0x7a, 0x61, 0xa2, 0x8e, 0x8d, 0x0f, + 0x69, 0xc8, 0x50, 0xfe, 0xfe, 0x4b, 0x39, 0xdc, 0xc8, 0x4f, 0x7a, 0x2b, 0x3f, 0xfb, 0x90, 0x15, + 0x4b, 0x9f, 0x61, 0x68, 0x6a, 0x9f, 0x3c, 0x37, 0x32, 0x96, 0x3e, 0xa3, 0x28, 0x21, 0xe3, 0xc8, + 0x7d, 0x13, 0x85, 0xb3, 0x28, 0x7c, 0x77, 0x43, 0x98, 0xf2, 0xf7, 0xad, 0x53, 0x1f, 0xe5, 0xf3, + 0x1c, 0x7f, 0x89, 0x0e, 0x99, 0x31, 0x53, 0xed, 0x55, 0xa1, 0xf2, 0x28, 0x13, 0x38, 0xb7, 0x26, + 0x33, 0x86, 0x11, 0xa8, 0x50, 0x45, 0x48, 0x03, 0xf9, 0xc4, 0x31, 0x15, 0x52, 0x40, 0xa4, 0xc8, + 0x27, 0xce, 0x05, 0x82, 0x7f, 0x80, 0x5b, 0x6c, 0xe1, 0xbb, 0x01, 0x33, 0x45, 0x68, 0xce, 0x3c, + 0x77, 0x61, 0x86, 0xcc, 0x0e, 0x31, 0x3c, 0x59, 0xaa, 0x2b, 0xc8, 0x08, 0xcf, 0x3d, 0x77, 0x71, + 0xc6, 0xec, 0x50, 0x16, 0x83, 0x58, 0x78, 0x66, 0xc8, 0x67, 0x81, 0xcd, 0xea, 0x25, 0x55, 0x0c, + 0x62, 0xe1, 0x9d, 0x21, 0xa3, 0xf9, 0x04, 0xf2, 0xca, 0x48, 0x52, 0x86, 0xc2, 0xf9, 0xf0, 0x78, + 0x78, 0xfa, 0x76, 0xa8, 0xa7, 0x48, 0x01, 0x32, 0x6f, 0xce, 0x0d, 0x5d, 0x23, 0x00, 0xf9, 0x6e, + 0x6f, 0xd0, 0x33, 0x7a, 0x7a, 0xba, 0xf1, 0x02, 0x0a, 0xbd, 0xa4, 0x22, 0x92, 0x1a, 0xd2, 0xee, + 0x67, 0xf6, 0xcb, 0x6d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, 0xfb, 0xe7, 0x29, 0xe9, 0xfc, 0xf6, 0xc3, 0x57, 0x45, 0xed, 0x9b, 0x8f, + 0x7b, 0xda, 0xb7, 0x1f, 0xf7, 0xb4, 0xef, 0x3e, 0xee, 0x69, 0xff, 0xff, 0x7e, 0x2f, 0x05, 0x3a, + 0x0f, 0x46, 0x2d, 0xe1, 0x8e, 0xe7, 0xad, 0xf1, 0x1c, 0xff, 0x18, 0x5c, 0xe6, 0xf1, 0xe7, 0x8f, + 0x3f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x00, 0x85, 0xeb, 0x9a, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1869,6 +1879,18 @@ func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.ServerIsBusy != nil { + { + size, err := m.ServerIsBusy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCdcpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } if m.ClusterIdMismatch != nil { { size, err := m.ClusterIdMismatch.MarshalToSizedBuffer(dAtA[:i]) @@ -2481,20 +2503,20 @@ func (m *ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x10 } if len(m.Regions) > 0 { - dAtA15 := make([]byte, len(m.Regions)*10) - var j14 int + dAtA16 := make([]byte, len(m.Regions)*10) + var j15 int for _, num := range m.Regions { for num >= 1<<7 { - dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) + dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j14++ + j15++ } - dAtA15[j14] = uint8(num) - j14++ + dAtA16[j15] = uint8(num) + j15++ } - i -= j14 - copy(dAtA[i:], dAtA15[:j14]) - i = encodeVarintCdcpb(dAtA, i, uint64(j14)) + i -= j15 + copy(dAtA[i:], dAtA16[:j15]) + i = encodeVarintCdcpb(dAtA, i, uint64(j15)) i-- dAtA[i] = 0xa } @@ -2877,6 +2899,10 @@ func (m *Error) Size() (n int) { l = m.ClusterIdMismatch.Size() n += 1 + l + sovCdcpb(uint64(l)) } + if m.ServerIsBusy != nil { + l = m.ServerIsBusy.Size() + n += 1 + l + sovCdcpb(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3874,6 +3900,42 @@ func (m *Error) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerIsBusy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCdcpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCdcpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCdcpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ServerIsBusy == nil { + m.ServerIsBusy = &errorpb.ServerIsBusy{} + } + if err := m.ServerIsBusy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCdcpb(dAtA[iNdEx:]) diff --git a/proto/cdcpb.proto b/proto/cdcpb.proto index 27fe58208..6d27130f1 100644 --- a/proto/cdcpb.proto +++ b/proto/cdcpb.proto @@ -45,6 +45,7 @@ message Error { DuplicateRequest duplicate_request = 4; Compatibility compatibility = 5; ClusterIDMismatch cluster_id_mismatch = 6; + errorpb.ServerIsBusy server_is_busy = 7; } message TxnInfo { diff --git a/scripts/proto.lock b/scripts/proto.lock index 130b105c9..497e44ee6 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -1727,6 +1727,11 @@ "id": 6, "name": "cluster_id_mismatch", "type": "ClusterIDMismatch" + }, + { + "id": 7, + "name": "server_is_busy", + "type": "errorpb.ServerIsBusy" } ] },