[skip e2e]Improve log for QueryNode spell (#13810)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-12-20 22:42:57 +08:00 committed by GitHub
parent 0cd43640e4
commit 9d1f6d97e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,12 +357,12 @@ func (colReplica *collectionReplica) getSegmentInfosByColID(collectionID UniqueI
for _, partitionID := range collection.partitionIDs {
partition, ok := colReplica.partitions[partitionID]
if !ok {
return nil, errors.New("the meta of collection and partition are inconsistent in query node")
return nil, errors.New("the meta of collection and partition are inconsistent in QueryNode")
}
for _, segmentID := range partition.segmentIDs {
segment, ok := colReplica.segments[segmentID]
if !ok {
return nil, errors.New("the meta of partition and segment are inconsistent in query node")
return nil, errors.New("the meta of partition and segment are inconsistent in QueryNode")
}
segmentInfo := getSegmentInfo(segment)
segmentInfos = append(segmentInfos, segmentInfo)