mirror of https://github.com/milvus-io/milvus.git
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com> Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/21114/head
parent
41f7b10abb
commit
8d55a2cefa
|
@ -323,6 +323,7 @@ var (
|
|||
collectionIDLabelName,
|
||||
partitionIDLabelName,
|
||||
segmentStateLabelName,
|
||||
indexCountLabelName,
|
||||
})
|
||||
|
||||
// QueryNodeConsumeCounter counts the bytes QueryNode consumed from message storage.
|
||||
|
|
|
@ -631,7 +631,8 @@ func (replica *metaReplica) addSegmentPrivate(segment *Segment) error {
|
|||
fmt.Sprint(Params.QueryNodeCfg.GetNodeID()),
|
||||
fmt.Sprint(segment.collectionID),
|
||||
fmt.Sprint(segment.partitionID),
|
||||
string(segType),
|
||||
segType.String(),
|
||||
fmt.Sprint(segment.indexedFieldInfos.Len()),
|
||||
).Add(float64(rowCount))
|
||||
}
|
||||
return nil
|
||||
|
@ -739,7 +740,8 @@ func (replica *metaReplica) removeSegmentPrivate(segmentID UniqueID, segType seg
|
|||
fmt.Sprint(Params.QueryNodeCfg.GetNodeID()),
|
||||
fmt.Sprint(segment.collectionID),
|
||||
fmt.Sprint(segment.partitionID),
|
||||
string(segType),
|
||||
segType.String(),
|
||||
fmt.Sprint(segment.indexedFieldInfos.Len()),
|
||||
).Sub(float64(rowCount))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -709,6 +709,7 @@ func (s *Segment) segmentInsert(offset int64, entityIDs []UniqueID, timestamps [
|
|||
fmt.Sprint(s.collectionID),
|
||||
fmt.Sprint(s.partitionID),
|
||||
s.segmentType.String(),
|
||||
fmt.Sprint(0),
|
||||
).Add(float64(numOfRow))
|
||||
s.setRecentlyModified(true)
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue