mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Improve getSegmentInfosByColID log format (#15026)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/15029/head
parent
92b466800f
commit
708dfddba6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue