未验证 提交 6f8ea8cc 编写于 作者: X xige-16 提交者: GitHub

Fix querycoord panic at getRecoveryInfo (#12983)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 b7e97f67
......@@ -285,7 +285,7 @@ const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(
"\006Failed\020\004*s\n\014SegmentState\022\024\n\020SegmentStat"
"eNone\020\000\022\014\n\010NotExist\020\001\022\013\n\007Growing\020\002\022\n\n\006Se"
"aled\020\003\022\013\n\007Flushed\020\004\022\014\n\010Flushing\020\005\022\013\n\007Dro"
"pped\020\006*\375\010\n\007MsgType\022\r\n\tUndefined\020\000\022\024\n\020Cre"
"pped\020\006*\223\t\n\007MsgType\022\r\n\tUndefined\020\000\022\024\n\020Cre"
"ateCollection\020d\022\022\n\016DropCollection\020e\022\021\n\rH"
"asCollection\020f\022\026\n\022DescribeCollection\020g\022\023"
"\n\017ShowCollections\020h\022\024\n\020GetSystemConfigs\020"
......@@ -309,16 +309,16 @@ const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(
"ls\020\375\003\022\027\n\022WatchQueryChannels\020\376\003\022\030\n\023Remove"
"QueryChannels\020\377\003\022\035\n\030SealedSegmentsChange"
"Info\020\200\004\022\027\n\022WatchDeltaChannels\020\201\004\022\020\n\013Segm"
"entInfo\020\330\004\022\017\n\nSystemInfo\020\331\004\022\r\n\010TimeTick\020"
"\260\t\022\023\n\016QueryNodeStats\020\261\t\022\016\n\tLoadIndex\020\262\t\022"
"\016\n\tRequestID\020\263\t\022\017\n\nRequestTSO\020\264\t\022\024\n\017Allo"
"cateSegment\020\265\t\022\026\n\021SegmentStatistics\020\266\t\022\025"
"\n\020SegmentFlushDone\020\267\t\022\017\n\nDataNodeTt\020\270\t*\""
"\n\007DslType\022\007\n\003Dsl\020\000\022\016\n\nBoolExprV1\020\001*B\n\017Co"
"mpactionState\022\021\n\rUndefiedState\020\000\022\r\n\tExec"
"uting\020\001\022\r\n\tCompleted\020\002B5Z3github.com/mil"
"vus-io/milvus/internal/proto/commonpbb\006p"
"roto3"
"entInfo\020\330\004\022\017\n\nSystemInfo\020\331\004\022\024\n\017GetRecove"
"ryInfo\020\332\004\022\r\n\010TimeTick\020\260\t\022\023\n\016QueryNodeSta"
"ts\020\261\t\022\016\n\tLoadIndex\020\262\t\022\016\n\tRequestID\020\263\t\022\017\n"
"\nRequestTSO\020\264\t\022\024\n\017AllocateSegment\020\265\t\022\026\n\021"
"SegmentStatistics\020\266\t\022\025\n\020SegmentFlushDone"
"\020\267\t\022\017\n\nDataNodeTt\020\270\t*\"\n\007DslType\022\007\n\003Dsl\020\000"
"\022\016\n\nBoolExprV1\020\001*B\n\017CompactionState\022\021\n\rU"
"ndefiedState\020\000\022\r\n\tExecuting\020\001\022\r\n\tComplet"
"ed\020\002B5Z3github.com/milvus-io/milvus/inte"
"rnal/proto/commonpbb\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_common_2eproto_deps[1] = {
};
......@@ -335,7 +335,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_com
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_common_2eproto_once;
static bool descriptor_table_common_2eproto_initialized = false;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2eproto = {
&descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 2605,
&descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 2627,
&descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_sccs, descriptor_table_common_2eproto_deps, 8, 0,
schemas, file_default_instances, TableStruct_common_2eproto::offsets,
file_level_metadata_common_2eproto, 8, file_level_enum_descriptors_common_2eproto, file_level_service_descriptors_common_2eproto,
......@@ -474,6 +474,7 @@ bool MsgType_IsValid(int value) {
case 513:
case 600:
case 601:
case 602:
case 1200:
case 1201:
case 1202:
......
......@@ -255,6 +255,7 @@ enum MsgType : int {
WatchDeltaChannels = 513,
SegmentInfo = 600,
SystemInfo = 601,
GetRecoveryInfo = 602,
TimeTick = 1200,
QueryNodeStats = 1201,
LoadIndex = 1202,
......
......@@ -140,6 +140,7 @@ enum MsgType {
/* DATA SERVICE */
SegmentInfo = 600;
SystemInfo = 601;
GetRecoveryInfo = 602;
/* SYSTEM CONTROL */
TimeTick = 1200;
......
......@@ -250,8 +250,9 @@ const (
MsgType_SealedSegmentsChangeInfo MsgType = 512
MsgType_WatchDeltaChannels MsgType = 513
// DATA SERVICE
MsgType_SegmentInfo MsgType = 600
MsgType_SystemInfo MsgType = 601
MsgType_SegmentInfo MsgType = 600
MsgType_SystemInfo MsgType = 601
MsgType_GetRecoveryInfo MsgType = 602
// SYSTEM CONTROL
MsgType_TimeTick MsgType = 1200
MsgType_QueryNodeStats MsgType = 1201
......@@ -312,6 +313,7 @@ var MsgType_name = map[int32]string{
513: "WatchDeltaChannels",
600: "SegmentInfo",
601: "SystemInfo",
602: "GetRecoveryInfo",
1200: "TimeTick",
1201: "QueryNodeStats",
1202: "LoadIndex",
......@@ -371,6 +373,7 @@ var MsgType_value = map[string]int32{
"WatchDeltaChannels": 513,
"SegmentInfo": 600,
"SystemInfo": 601,
"GetRecoveryInfo": 602,
"TimeTick": 1200,
"QueryNodeStats": 1201,
"LoadIndex": 1202,
......@@ -841,95 +844,96 @@ func init() {
func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) }
var fileDescriptor_555bd8c177793206 = []byte{
// 1433 bytes of a gzipped FileDescriptorProto
// 1446 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4b, 0x73, 0x1b, 0xc7,
0x11, 0xe6, 0x62, 0x41, 0x82, 0x68, 0x82, 0xe4, 0x70, 0xf8, 0x10, 0xa5, 0x30, 0x29, 0x15, 0x4e,
0x11, 0xe6,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x8e, 0x02, 0x0c, 0x44, 0x0a, 0x12, 0x99, 0x68, 0xad, 0x84, 0xb6, 0x65, 0x0c, 0x17, 0xd8, 0x1f,
0x3a, 0xcd, 0x2e, 0x93, 0xe5, 0x02, 0x2d, 0x05, 0xe0, 0x29, 0xd0, 0x3a, 0x9b, 0x27, 0x33, 0x85,
0xea, 0xe4, 0xe8, 0xf8, 0x16, 0x25, 0x25, 0x86, 0x50, 0x3d, 0x08, 0x21, 0x52, 0x3a, 0xa6, 0x33,
0xa5, 0x14, 0xee, 0x42, 0x64, 0x95, 0x6e, 0x07, 0xb4, 0x81, 0x09, 0x17, 0x60, 0x07, 0xb8, 0x8e,
0x7a, 0x21, 0x98, 0x2c, 0xb1, 0x74, 0x96, 0x51, 0xd2, 0xd8, 0x15, 0x09, 0x1c, 0x2a, 0xbb, 0xab,
0x32, 0x19, 0xd3, 0x39, 0x36, 0x47, 0xc8, 0x01, 0x58, 0x5e, 0x54, 0x60, 0x1e, 0xc3, 0xb6, 0x78,
0xd4, 0x83, 0x02, 0xa0, 0x6c, 0x85, 0xb0, 0x16, 0x97, 0x52, 0xd9, 0x96, 0x06, 0x6e, 0x61, 0x57,
0x25, 0x31, 0x68, 0xba, 0x80, 0xe9, 0xbc, 0x80, 0x8b, 0x04, 0x28, 0x1b, 0x5b, 0x07, 0x90, 0xc0,
0xc8, 0x7a, 0x71, 0x6c, 0x5d, 0xe0, 0x68, 0xbd, 0x84, 0xc9, 0x6f, 0x67, 0x22, 0x89, 0x5d, 0x49,
0xf2, 0xb6, 0x2c, 0x63, 0x8e, 0x45, 0xf2, 0x87, 0xb7, 0xdb, 0x9d, 0x13, 0xba, 0xc2, 0x96, 0xc9,
0x42, 0x81, 0x1c, 0x80, 0xd5, 0x22, 0x72, 0xc5, 0xbb, 0x84, 0xa9, 0x1e, 0x65, 0xf6, 0xe8, 0xec,
0x00, 0x52, 0xa5, 0x07, 0x74, 0x15, 0x1b, 0xea, 0x98, 0x86, 0x2d, 0xa2, 0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df, 0x88, 0xcd, 0xfc, 0xbf,
0xe2, 0xba, 0x50, 0xc5, 0x69, 0x53, 0x48, 0x0b, 0x5a, 0xf2, 0x64, 0xd3, 0xfd, 0x6a, 0x6c, 0xe6,
0xbf, 0x1a, 0xfd, 0xd3, 0xd3, 0x29, 0x27, 0xdf, 0xf8, 0x39, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x98,
0xc8, 0xe4, 0xbb, 0x0a, 0x00, 0x00,
}
......@@ -320,6 +320,14 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
defer cancel2()
showPartitionResponse, err := lct.rootCoord.ShowPartitions(ctx2, showPartitionRequest)
if err != nil {
log.Error("loadCollectionTask: showPartition failed", zap.Int64("collectionID", collectionID), zap.Error(err))
lct.setResultInfo(err)
return err
}
if showPartitionResponse.Status.ErrorCode != commonpb.ErrorCode_Success {
err = errors.New(showPartitionResponse.Status.Reason)
log.Error("loadCollectionTask: showPartition failed", zap.Int64("collectionID", collectionID), zap.Error(err))
lct.setResultInfo(err)
return err
}
......@@ -364,22 +372,14 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
segmentsToLoad := make([]UniqueID, 0)
var watchDeltaChannels []*datapb.VchannelInfo
for _, partitionID := range toLoadPartitionIDs {
getRecoveryInfoRequest := &datapb.GetRecoveryInfoRequest{
Base: lct.Base,
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := func() (*datapb.GetRecoveryInfoResponse, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
return lct.dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfoRequest)
}()
dmChannelInfos, binlogs, err := getRecoveryInfo(lct.ctx, lct.dataCoord, collectionID, partitionID)
if err != nil {
log.Error("loadCollectionTask: getRecoveryInfo failed", zap.Int64("collectionID", collectionID), zap.Int64("partitionID", partitionID), zap.Error(err))
lct.setResultInfo(err)
return err
}
for _, segmentBingLog := range recoveryInfo.Binlogs {
for _, segmentBingLog := range binlogs {
segmentID := segmentBingLog.SegmentID
segmentLoadInfo := &querypb.SegmentLoadInfo{
SegmentID: segmentID,
......@@ -415,7 +415,7 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
deltaChannel, err := generateWatchDeltaChannelInfo(info)
if err != nil {
return err
......@@ -423,7 +423,7 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
watchDeltaChannels = append(watchDeltaChannels, deltaChannel)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
channel := info.ChannelName
if !watchPartition {
merged := false
......@@ -598,9 +598,14 @@ func (rct *releaseCollectionTask) execute(ctx context.Context) error {
ctx2, cancel2 := context.WithTimeout(rct.ctx, timeoutForRPC)
defer cancel2()
res, err := rct.rootCoord.ReleaseDQLMessageStream(ctx2, releaseDQLMessageStreamReq)
if res.ErrorCode != commonpb.ErrorCode_Success || err != nil {
log.Warn("releaseCollectionTask: release collection end, releaseDQLMessageStream occur error", zap.Int64("collectionID", rct.CollectionID))
err = errors.New("rootCoord releaseDQLMessageStream failed")
if err != nil {
log.Error("releaseCollectionTask: release collection end, releaseDQLMessageStream occur error", zap.Int64("collectionID", rct.CollectionID), zap.Error(err))
rct.setResultInfo(err)
return err
}
if res.ErrorCode != commonpb.ErrorCode_Success {
log.Error("releaseCollectionTask: release collection end, releaseDQLMessageStream occur error", zap.Int64("collectionID", rct.CollectionID), zap.String("error", res.Reason))
err = errors.New(res.Reason)
rct.setResultInfo(err)
return err
}
......@@ -738,22 +743,14 @@ func (lpt *loadPartitionTask) execute(ctx context.Context) error {
watchDmReqs := make([]*querypb.WatchDmChannelsRequest, 0)
var watchDeltaChannels []*datapb.VchannelInfo
for _, partitionID := range partitionIDs {
getRecoveryInfoRequest := &datapb.GetRecoveryInfoRequest{
Base: lpt.Base,
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := func() (*datapb.GetRecoveryInfoResponse, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
return lpt.dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfoRequest)
}()
dmChannelInfos, binlogs, err := getRecoveryInfo(lpt.ctx, lpt.dataCoord, collectionID, partitionID)
if err != nil {
log.Error("loadPartitionTask: getRecoveryInfo failed", zap.Int64("collectionID", collectionID), zap.Int64("partitionID", partitionID), zap.Error(err))
lpt.setResultInfo(err)
return err
}
for _, segmentBingLog := range recoveryInfo.Binlogs {
for _, segmentBingLog := range binlogs {
segmentID := segmentBingLog.SegmentID
segmentLoadInfo := &querypb.SegmentLoadInfo{
SegmentID: segmentID,
......@@ -788,14 +785,14 @@ func (lpt *loadPartitionTask) execute(ctx context.Context) error {
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
deltaChannel, err := generateWatchDeltaChannelInfo(info)
if err != nil {
return err
}
watchDeltaChannels = append(watchDeltaChannels, deltaChannel)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
// watch dml channels
channel := info.ChannelName
msgBase := proto.Clone(lpt.Base).(*commonpb.MsgBase)
......@@ -1552,17 +1549,9 @@ func (ht *handoffTask) execute(ctx context.Context) error {
// segment which is compacted to should not exist in query node
_, err = ht.meta.getSegmentInfoByID(segmentID)
if err != nil {
getRecoveryInfoRequest := &datapb.GetRecoveryInfoRequest{
Base: ht.Base,
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := func() (*datapb.GetRecoveryInfoResponse, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
return ht.dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfoRequest)
}()
dmChannelInfos, binlogs, err := getRecoveryInfo(ht.ctx, ht.dataCoord, collectionID, partitionID)
if err != nil {
log.Error("handoffTask: getRecoveryInfo failed", zap.Int64("collectionID", collectionID), zap.Int64("partitionID", partitionID), zap.Error(err))
ht.setResultInfo(err)
return err
}
......@@ -1570,7 +1559,7 @@ func (ht *handoffTask) execute(ctx context.Context) error {
findBinlog := false
var loadSegmentReq *querypb.LoadSegmentsRequest
var watchDeltaChannels []*datapb.VchannelInfo
for _, segmentBinlogs := range recoveryInfo.Binlogs {
for _, segmentBinlogs := range binlogs {
if segmentBinlogs.SegmentID == segmentID {
findBinlog = true
segmentLoadInfo := &querypb.SegmentLoadInfo{
......@@ -1594,7 +1583,7 @@ func (ht *handoffTask) execute(ctx context.Context) error {
}
}
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
deltaChannel, err := generateWatchDeltaChannelInfo(info)
if err != nil {
return err
......@@ -1738,24 +1727,14 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
log.Debug("loadBalanceTask: partitions to recover", zap.Int64s("partitionIDs", partitionIDs))
for _, partitionID := range partitionIDs {
getRecoveryInfo := &datapb.GetRecoveryInfoRequest{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_LoadBalanceSegments,
},
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := func() (*datapb.GetRecoveryInfoResponse, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
return lbt.dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfo)
}()
dmChannelInfos, binlogs, err := getRecoveryInfo(lbt.ctx, lbt.dataCoord, collectionID, partitionID)
if err != nil {
log.Error("loadBalanceTask: getRecoveryInfo failed", zap.Int64("collectionID", collectionID), zap.Int64("partitionID", partitionID), zap.Error(err))
lbt.setResultInfo(err)
return err
}
for _, segmentBingLog := range recoveryInfo.Binlogs {
for _, segmentBingLog := range binlogs {
segmentID := segmentBingLog.SegmentID
segmentLoadInfo := &querypb.SegmentLoadInfo{
SegmentID: segmentID,
......@@ -1790,7 +1769,7 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
deltaChannel, err := generateWatchDeltaChannelInfo(info)
if err != nil {
return err
......@@ -1798,7 +1777,7 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
watchDeltaChannels = append(watchDeltaChannels, deltaChannel)
}
for _, channelInfo := range recoveryInfo.Channels {
for _, channelInfo := range dmChannelInfos {
for _, channel := range dmChannels {
if channelInfo.ChannelName == channel {
if loadType == querypb.LoadType_loadCollection {
......@@ -1939,23 +1918,15 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
return err
}
for _, partitionID := range partitionIDs {
getRecoveryInfoRequest := &datapb.GetRecoveryInfoRequest{
Base: lbt.Base,
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := func() (*datapb.GetRecoveryInfoResponse, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
return lbt.dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfoRequest)
}()
dmChannelInfos, binlogs, err := getRecoveryInfo(lbt.ctx, lbt.dataCoord, collectionID, partitionID)
if err != nil {
log.Error("loadBalanceTask: getRecoveryInfo failed", zap.Int64("collectionID", collectionID), zap.Int64("partitionID", partitionID), zap.Error(err))
lbt.setResultInfo(err)
return err
}
segmentID2Binlog := make(map[UniqueID]*datapb.SegmentBinlogs)
for _, binlog := range recoveryInfo.Binlogs {
for _, binlog := range binlogs {
segmentID2Binlog[binlog.SegmentID] = binlog
}
......@@ -1999,7 +1970,7 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
}
for _, info := range recoveryInfo.Channels {
for _, info := range dmChannelInfos {
deltaChannel, err := generateWatchDeltaChannelInfo(info)
if err != nil {
return err
......@@ -2275,3 +2246,26 @@ func mergeWatchDeltaChannelInfo(infos []*datapb.VchannelInfo) []*datapb.Vchannel
)
return result
}
func getRecoveryInfo(ctx context.Context, dataCoord types.DataCoord, collectionID UniqueID, partitionID UniqueID) ([]*datapb.VchannelInfo, []*datapb.SegmentBinlogs, error) {
ctx2, cancel2 := context.WithTimeout(ctx, timeoutForRPC)
defer cancel2()
getRecoveryInfoRequest := &datapb.GetRecoveryInfoRequest{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_GetRecoveryInfo,
},
CollectionID: collectionID,
PartitionID: partitionID,
}
recoveryInfo, err := dataCoord.GetRecoveryInfo(ctx2, getRecoveryInfoRequest)
if err != nil {
return nil, nil, err
}
if recoveryInfo.Status.ErrorCode != commonpb.ErrorCode_Success {
err = errors.New(recoveryInfo.Status.Reason)
return nil, nil, err
}
return recoveryInfo.Channels, recoveryInfo.Binlogs, nil
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册