[skip e2e]Improve getSegmentInfosByColID log format (#15026)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/15029/head
xige-16 2022-01-07 17:55:23 +08:00 committed by GitHub
parent 92b466800f
commit 708dfddba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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 QueryNode")
return nil, fmt.Errorf("the meta of collection %d and partition %d are inconsistent in QueryNode", collectionID, partitionID)
}
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 QueryNode")
return nil, fmt.Errorf("the meta of partition %d and segment %d are inconsistent in QueryNode", partitionID, segmentID)
}
segmentInfo := getSegmentInfo(segment)
segmentInfos = append(segmentInfos, segmentInfo)