Remove vector fields from output fields (#6112)

* Remove vector fields from output fields

Signed-off-by: fishpenguin <kun.yu@zilliz.com>

* Add empty_collection error_code

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/6125/head
yukun 2021-06-25 16:52:11 +08:00 committed by GitHub
parent da12e55c6c
commit eb818d05ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 155 additions and 138 deletions

View File

@ -207,7 +207,7 @@ const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(
"\030\001 \001(\0162\034.milvus.proto.common.MsgType\022\r\n\005"
"msgID\030\002 \001(\003\022\021\n\ttimestamp\030\003 \001(\004\022\020\n\010source"
"ID\030\004 \001(\003\"7\n\tMsgHeader\022*\n\004base\030\001 \001(\0132\034.mi"
"lvus.proto.common.MsgBase*\245\004\n\tErrorCode\022"
"lvus.proto.common.MsgBase*\272\004\n\tErrorCode\022"
"\013\n\007Success\020\000\022\023\n\017UnexpectedError\020\001\022\021\n\rCon"
"nectFailed\020\002\022\024\n\020PermissionDenied\020\003\022\027\n\023Co"
"llectionNotExists\020\004\022\023\n\017IllegalArgument\020\005"
@ -220,41 +220,42 @@ const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(
"tCreateFile\020\022\022\026\n\022CannotDeleteFolder\020\023\022\024\n"
"\020CannotDeleteFile\020\024\022\023\n\017BuildIndexError\020\025"
"\022\020\n\014IllegalNLIST\020\026\022\025\n\021IllegalMetricType\020"
"\027\022\017\n\013OutOfMemory\020\030\022\021\n\rIndexNotExist\020\031\022\022\n"
"\rDDRequestRace\020\350\007*X\n\nIndexState\022\022\n\016Index"
"StateNone\020\000\022\014\n\010Unissued\020\001\022\016\n\nInProgress\020"
"\002\022\014\n\010Finished\020\003\022\n\n\006Failed\020\004*f\n\014SegmentSt"
"ate\022\024\n\020SegmentStateNone\020\000\022\014\n\010NotExist\020\001\022"
"\013\n\007Growing\020\002\022\n\n\006Sealed\020\003\022\013\n\007Flushed\020\004\022\014\n"
"\010Flushing\020\005*\204\010\n\007MsgType\022\r\n\tUndefined\020\000\022\024"
"\n\020CreateCollection\020d\022\022\n\016DropCollection\020e"
"\022\021\n\rHasCollection\020f\022\026\n\022DescribeCollectio"
"n\020g\022\023\n\017ShowCollections\020h\022\024\n\020GetSystemCon"
"figs\020i\022\022\n\016LoadCollection\020j\022\025\n\021ReleaseCol"
"lection\020k\022\024\n\017CreatePartition\020\310\001\022\022\n\rDropP"
"artition\020\311\001\022\021\n\014HasPartition\020\312\001\022\026\n\021Descri"
"bePartition\020\313\001\022\023\n\016ShowPartitions\020\314\001\022\023\n\016L"
"oadPartitions\020\315\001\022\026\n\021ReleasePartitions\020\316\001"
"\022\021\n\014ShowSegments\020\372\001\022\024\n\017DescribeSegment\020\373"
"\001\022\021\n\014LoadSegments\020\374\001\022\024\n\017ReleaseSegments\020"
"\375\001\022\024\n\017HandoffSegments\020\376\001\022\030\n\023LoadBalanceS"
"egments\020\377\001\022\020\n\013CreateIndex\020\254\002\022\022\n\rDescribe"
"Index\020\255\002\022\016\n\tDropIndex\020\256\002\022\013\n\006Insert\020\220\003\022\013\n"
"\006Delete\020\221\003\022\n\n\005Flush\020\222\003\022\013\n\006Search\020\364\003\022\021\n\014S"
"earchResult\020\365\003\022\022\n\rGetIndexState\020\366\003\022\032\n\025Ge"
"tIndexBuildProgress\020\367\003\022\034\n\027GetCollectionS"
"tatistics\020\370\003\022\033\n\026GetPartitionStatistics\020\371"
"\003\022\r\n\010Retrieve\020\372\003\022\023\n\016RetrieveResult\020\373\003\022\024\n"
"\017WatchDmChannels\020\374\003\022\025\n\020RemoveDmChannels\020"
"\375\003\022\027\n\022WatchQueryChannels\020\376\003\022\030\n\023RemoveQue"
"ryChannels\020\377\003\022\020\n\013SegmentInfo\020\330\004\022\r\n\010TimeT"
"ick\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\017"
"AllocateSegment\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\001B5"
"Z3github.com/milvus-io/milvus/internal/p"
"roto/commonpbb\006proto3"
"\027\022\017\n\013OutOfMemory\020\030\022\021\n\rIndexNotExist\020\031\022\023\n"
"\017EmptyCollection\020\032\022\022\n\rDDRequestRace\020\350\007*X"
"\n\nIndexState\022\022\n\016IndexStateNone\020\000\022\014\n\010Unis"
"sued\020\001\022\016\n\nInProgress\020\002\022\014\n\010Finished\020\003\022\n\n\006"
"Failed\020\004*f\n\014SegmentState\022\024\n\020SegmentState"
"None\020\000\022\014\n\010NotExist\020\001\022\013\n\007Growing\020\002\022\n\n\006Sea"
"led\020\003\022\013\n\007Flushed\020\004\022\014\n\010Flushing\020\005*\204\010\n\007Msg"
"Type\022\r\n\tUndefined\020\000\022\024\n\020CreateCollection\020"
"d\022\022\n\016DropCollection\020e\022\021\n\rHasCollection\020f"
"\022\026\n\022DescribeCollection\020g\022\023\n\017ShowCollecti"
"ons\020h\022\024\n\020GetSystemConfigs\020i\022\022\n\016LoadColle"
"ction\020j\022\025\n\021ReleaseCollection\020k\022\024\n\017Create"
"Partition\020\310\001\022\022\n\rDropPartition\020\311\001\022\021\n\014HasP"
"artition\020\312\001\022\026\n\021DescribePartition\020\313\001\022\023\n\016S"
"howPartitions\020\314\001\022\023\n\016LoadPartitions\020\315\001\022\026\n"
"\021ReleasePartitions\020\316\001\022\021\n\014ShowSegments\020\372\001"
"\022\024\n\017DescribeSegment\020\373\001\022\021\n\014LoadSegments\020\374"
"\001\022\024\n\017ReleaseSegments\020\375\001\022\024\n\017HandoffSegmen"
"ts\020\376\001\022\030\n\023LoadBalanceSegments\020\377\001\022\020\n\013Creat"
"eIndex\020\254\002\022\022\n\rDescribeIndex\020\255\002\022\016\n\tDropInd"
"ex\020\256\002\022\013\n\006Insert\020\220\003\022\013\n\006Delete\020\221\003\022\n\n\005Flush"
"\020\222\003\022\013\n\006Search\020\364\003\022\021\n\014SearchResult\020\365\003\022\022\n\rG"
"etIndexState\020\366\003\022\032\n\025GetIndexBuildProgress"
"\020\367\003\022\034\n\027GetCollectionStatistics\020\370\003\022\033\n\026Get"
"PartitionStatistics\020\371\003\022\r\n\010Retrieve\020\372\003\022\023\n"
"\016RetrieveResult\020\373\003\022\024\n\017WatchDmChannels\020\374\003"
"\022\025\n\020RemoveDmChannels\020\375\003\022\027\n\022WatchQueryCha"
"nnels\020\376\003\022\030\n\023RemoveQueryChannels\020\377\003\022\020\n\013Se"
"gmentInfo\020\330\004\022\r\n\010TimeTick\020\260\t\022\023\n\016QueryNode"
"Stats\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\021SegmentStatistics\020\266\t\022\025\n\020SegmentFlushD"
"one\020\267\t\022\017\n\nDataNodeTt\020\270\t*\"\n\007DslType\022\007\n\003Ds"
"l\020\000\022\016\n\nBoolExprV1\020\001B5Z3github.com/milvus"
"-io/milvus/internal/proto/commonpbb\006prot"
"o3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_common_2eproto_deps[1] = {
};
@ -269,7 +270,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", 2261,
&descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 2282,
&descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_sccs, descriptor_table_common_2eproto_deps, 6, 0,
schemas, file_default_instances, TableStruct_common_2eproto::offsets,
file_level_metadata_common_2eproto, 6, file_level_enum_descriptors_common_2eproto, file_level_service_descriptors_common_2eproto,
@ -311,6 +312,7 @@ bool ErrorCode_IsValid(int value) {
case 23:
case 24:
case 25:
case 26:
case 1000:
return true;
default:

View File

@ -117,6 +117,7 @@ enum ErrorCode : int {
IllegalMetricType = 23,
OutOfMemory = 24,
IndexNotExist = 25,
EmptyCollection = 26,
DDRequestRace = 1000,
ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()

View File

@ -30,6 +30,7 @@ enum ErrorCode {
IllegalMetricType = 23;
OutOfMemory = 24;
IndexNotExist = 25;
EmptyCollection = 26;
// internal error code.
DDRequestRace = 1000;

View File

@ -48,6 +48,7 @@ const (
ErrorCode_IllegalMetricType ErrorCode = 23
ErrorCode_OutOfMemory ErrorCode = 24
ErrorCode_IndexNotExist ErrorCode = 25
ErrorCode_EmptyCollection ErrorCode = 26
// internal error code.
ErrorCode_DDRequestRace ErrorCode = 1000
)
@ -78,6 +79,7 @@ var ErrorCode_name = map[int32]string{
23: "IllegalMetricType",
24: "OutOfMemory",
25: "IndexNotExist",
26: "EmptyCollection",
1000: "DDRequestRace",
}
@ -107,6 +109,7 @@ var ErrorCode_value = map[string]int32{
"IllegalMetricType": 23,
"OutOfMemory": 24,
"IndexNotExist": 25,
"EmptyCollection": 26,
"DDRequestRace": 1000,
}
@ -691,86 +694,86 @@ func init() {
func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) }
var fileDescriptor_555bd8c177793206 = []byte{
// 1282 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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0x47, 0x55, 0xc7, 0x22,
0x83, 0x63, 0x11, 0xdf, 0xa7, 0x1f, 0x07, 0xa8, 0xca, 0x6d, 0x3a, 0x50, 0x09, 0xa0, 0x7c, 0x43,
0x3f, 0x09, 0xd0, 0x7a, 0x2c, 0x5d, 0x61, 0xfd, 0xa7, 0x2e, 0x2e, 0xdf, 0x98, 0x76, 0x48, 0x3f,
0xc3, 0xb7, 0x9b, 0x94, 0xf1, 0x71, 0xe7, 0x90, 0x7e, 0x1e, 0xe0, 0x35, 0x6e, 0xa4, 0xa9, 0x8a,
0xb9, 0x1d, 0x35, 0xd0, 0x17, 0x01, 0x76, 0x60, 0xe5, 0x79, 0x28, 0x8d, 0xf9, 0x32, 0xc0, 0xeb,
0x95, 0xb8, 0x2b, 0x5b, 0x88, 0xcf, 0xc6, 0x57, 0x8e, 0x35, 0xe4, 0x96, 0xa3, 0x92, 0x63, 0x4b,
0xbf, 0x0e, 0x36, 0xd6, 0x49, 0x23, 0x34, 0xa9, 0x7b, 0x05, 0x1a, 0xc4, 0x0f, 0x4d, 0x4a, 0x27,
0xf0, 0xb1, 0xda, 0x56, 0x2a, 0xbd, 0x79, 0x36, 0xd0, 0x77, 0xff, 0x4b, 0xbd, 0xed, 0xff, 0xbf,
0x79, 0xad, 0x27, 0x6c, 0x3f, 0x3f, 0xc1, 0x7f, 0xe6, 0x56, 0xf1, 0x13, 0xbd, 0x2a, 0x54, 0xf9,
0xb5, 0x25, 0xa4, 0x05, 0x2d, 0x79, 0xba, 0xe5, 0xfe, 0xab, 0x5b, 0xc5, 0x7f, 0x75, 0x70, 0x72,
0x32, 0xe5, 0xe2, 0x6b, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xcf, 0x59, 0x73, 0x31, 0x09,
0x00, 0x00,
// 1288 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xd9, 0x6e, 0xdb,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0xa6, 0x55, 0xb6, 0x44, 0xe8, 0x31, 0xe8, 0x54, 0x18, 0x23, 0x94, 0x0c, 0x40, 0x0a, 0x88, 0xa9,
0xc7, 0x2e, 0x90, 0xc5, 0xa6, 0x4a, 0x12, 0x88, 0xac, 0x50, 0xf2, 0x50, 0xd9, 0x9d, 0x73, 0x61,
0xac, 0xa1, 0x35, 0x2c, 0xdb, 0x4a, 0x12, 0xe8, 0xf2, 0xe4, 0x86, 0xee, 0x66, 0x29, 0x48, 0x4b,
0x27, 0xb1, 0x46, 0x01, 0x06, 0x22, 0x05, 0x89, 0x95, 0x68, 0xbd, 0x84, 0xb6, 0x64, 0x0c, 0xe7,
0xa8, 0x1f, 0x9d, 0x66, 0x17, 0xc9, 0x72, 0x81, 0x96, 0x1a, 0xf0, 0x14, 0xa8, 0xcf, 0xe6, 0xc9,
0x4c, 0xe1, 0x3a, 0x39, 0x3a, 0xbe, 0x49, 0x49, 0xa9, 0x42, 0xa8, 0xee, 0x87, 0x10, 0x29, 0x1d,
0xd3, 0x99, 0x12, 0x85, 0x3b, 0x10, 0x59, 0xa5, 0x5b, 0x01, 0x6d, 0x20, 0xe1, 0x02, 0x6c, 0x03,
0xd7, 0x51, 0x2f, 0x04, 0x93, 0x25, 0x96, 0xce, 0x32, 0x4a, 0x1a, 0xbb, 0x22, 0x81, 0x43, 0x65,
0x77, 0x55, 0x26, 0x63, 0x3a, 0xc7, 0xe6, 0x08, 0x39, 0x00, 0xcb, 0x0b, 0x05, 0xe6, 0xb1, 0x6d,
0x93, 0x47, 0x3d, 0x28, 0x00, 0xca, 0x56, 0x08, 0x6b, 0x72, 0x29, 0x95, 0x6d, 0x6a, 0xe0, 0x16,
0x76, 0x55, 0x12, 0x83, 0xa6, 0x0b, 0x48, 0xe7, 0x39, 0x5c, 0x24, 0x40, 0xd9, 0x38, 0x3a, 0x80,
0x04, 0x46, 0xd1, 0x8b, 0xe3, 0xe8, 0x02, 0xc7, 0xe8, 0x25, 0x24, 0xbf, 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52, 0x38, 0x11, 0xd1, 0x3d, 0xfa, 0x89, 0x8f, 0xac, 0x5c, 0xd2,
0xa1, 0x8a, 0x01, 0xe9, 0x1b, 0xfa, 0xa9, 0x8f, 0xd2, 0xe3, 0xe8, 0x72, 0xe9, 0x3f, 0x73, 0x76,
0xf1, 0xc6, 0xb4, 0x02, 0xfa, 0x39, 0x3e, 0xe8, 0xa4, 0xb0, 0x4f, 0xda, 0x47, 0xf4, 0x0b, 0x1f,
0x8f, 0x71, 0x23, 0x49, 0x54, 0xc4, 0xed, 0xe8, 0x02, 0x7d, 0xe9, 0xe3, 0x0d, 0x2c, 0x3d, 0x0f,
0x85, 0x30, 0x5f, 0xf9, 0x78, 0xbc, 0x02, 0x77, 0x63, 0x0b, 0xf0, 0xd9, 0xf8, 0xda, 0x55, 0x0d,
0xb8, 0xe5, 0xc8, 0xe4, 0xc4, 0xd2, 0x6f, 0xfc, 0x8d, 0x75, 0x52, 0x0f, 0x4c, 0xe2, 0x5e, 0x81,
0x3a, 0xf1, 0x02, 0x93, 0xd0, 0x09, 0x7c, 0xac, 0xb6, 0x95, 0x4a, 0x76, 0xce, 0xfb, 0xfa, 0xce,
0xcb, 0xb4, 0xb2, 0xfd, 0xea, 0xdb, 0xd7, 0xba, 0xc2, 0xf6, 0xb2, 0x53, 0xfc, 0x91, 0x6e, 0xe5,
0x7f, 0xd6, 0xab, 0x42, 0x15, 0x5f, 0x5b, 0x42, 0x5a, 0xd0, 0x92, 0x27, 0x5b, 0xee, 0x67, 0xbb,
0x95, 0xff, 0x6c, 0xfb, 0xa7, 0xa7, 0x53, 0xce, 0xbe, 0xf6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff,
0xe0, 0x24, 0x61, 0xe5, 0x46, 0x09, 0x00, 0x00,
}

View File

@ -2032,24 +2032,23 @@ func (rt *RetrieveTask) PreExecute(ctx context.Context) error {
}
if len(rt.retrieve.OutputFields) == 0 {
for _, field := range schema.Fields {
if field.FieldID >= 100 {
if field.FieldID >= 100 && field.DataType != schemapb.DataType_FloatVector && field.DataType != schemapb.DataType_BinaryVector {
rt.OutputFields = append(rt.OutputFields, field.Name)
}
}
} else {
rt.OutputFields = rt.retrieve.OutputFields
for _, field := range schema.Fields {
if field.IsPrimaryKey {
containPrimaryKey := false
for _, reqFields := range rt.retrieve.OutputFields {
if reqFields == field.Name {
containPrimaryKey = true
for _, reqField := range rt.retrieve.OutputFields {
for _, field := range schema.Fields {
if reqField == field.Name {
if field.DataType != schemapb.DataType_FloatVector && field.DataType != schemapb.DataType_BinaryVector {
rt.OutputFields = append(rt.OutputFields, reqField)
}
} else {
if field.IsPrimaryKey {
rt.OutputFields = append(rt.OutputFields, field.Name)
}
}
if !containPrimaryKey {
rt.OutputFields = append(rt.OutputFields, field.Name)
}
break
}
}
}
@ -2198,6 +2197,7 @@ func (rt *RetrieveTask) PostExecute(ctx context.Context) error {
}
for idx, partialRetrieveResult := range retrieveResult {
log.Debug("Index-" + strconv.Itoa(idx))
availableQueryNodeNum++
if partialRetrieveResult.Ids == nil {
reason += "ids is nil\n"
continue
@ -2264,7 +2264,6 @@ func (rt *RetrieveTask) PostExecute(ctx context.Context) error {
}
// rt.result.FieldsData = append(rt.result.FieldsData, partialRetrieveResult.FieldsData...)
}
availableQueryNodeNum++
}
if availableQueryNodeNum == 0 {
@ -2279,6 +2278,18 @@ func (rt *RetrieveTask) PostExecute(ctx context.Context) error {
return nil
}
if len(rt.result.FieldsData) == 0 {
log.Info("Retrieve result is nil.",
zap.Any("requestID", rt.Base.MsgID), zap.Any("requestType", "retrieve"))
rt.result = &milvuspb.RetrieveResults{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_EmptyCollection,
Reason: reason,
},
}
return nil
}
schema, err := globalMetaCache.GetCollectionSchema(ctx, rt.retrieve.CollectionName)
if err != nil {
return err

View File

@ -1168,9 +1168,6 @@ func (q *queryCollection) retrieve(retrieveMsg *msgstream.RetrieveMsg) error {
if err1 != nil && err2 != nil {
return err2
}
if len(partitionIDsInHistoricalCol) == 0 {
return errors.New("none of this collection's partition has been loaded")
}
partitionIDsInHistorical = partitionIDsInHistoricalCol
partitionIDsInStreaming = partitionIDsInStreamingCol
} else {
@ -1228,6 +1225,8 @@ func (q *queryCollection) retrieve(retrieveMsg *msgstream.RetrieveMsg) error {
}
}
log.Debug("1111", zap.Any("len of mergeList", len(mergeList)))
result, err := mergeRetrieveResults(mergeList)
if err != nil {
return err
@ -1253,7 +1252,7 @@ func (q *queryCollection) retrieve(retrieveMsg *msgstream.RetrieveMsg) error {
},
}
log.Debug("QueryNode RetrieveResultMsg",
zap.Any("pChannels", collection.getPChannels()),
zap.Any("vChannels", collection.getVChannels()),
zap.Any("collectionID", collection.ID()),
zap.Any("sealedSegmentRetrieved", sealedSegmentRetrieved),
)

View File

@ -183,8 +183,8 @@ func TestRocksMQ_Goroutines(t *testing.T) {
msgChan := make(chan string, loopNum)
var wg sync.WaitGroup
for i := 0; i < loopNum; i += 2 {
go func(i int, group *sync.WaitGroup, mq RocksMQ) {
group.Add(2)
wg.Add(2)
go func(i int, mq RocksMQ) {
msg0 := "message_" + strconv.Itoa(i)
msg1 := "message_" + strconv.Itoa(i+1)
pMsg0 := ProducerMessage{Payload: []byte(msg0)}
@ -197,7 +197,7 @@ func TestRocksMQ_Goroutines(t *testing.T) {
assert.Nil(t, err)
msgChan <- msg0
msgChan <- msg1
}(i, &wg, rmq)
}(i, rmq)
}
groupName := "test_group"