mirror of https://github.com/milvus-io/milvus.git
Fix metric with wrong label (#21127)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com> Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/21106/head
parent
56e722f967
commit
14e737ee2d
|
@ -625,7 +625,7 @@ func (replica *metaReplica) addSegmentPrivate(segment *Segment) error {
|
|||
fmt.Sprint(paramtable.GetNodeID()),
|
||||
fmt.Sprint(segment.collectionID),
|
||||
fmt.Sprint(segment.partitionID),
|
||||
string(segType),
|
||||
segType.String(),
|
||||
fmt.Sprint(segment.indexedFieldInfos.Len()),
|
||||
).Inc()
|
||||
if rowCount > 0 {
|
||||
|
@ -733,7 +733,7 @@ func (replica *metaReplica) removeSegmentPrivate(segmentID UniqueID, segType seg
|
|||
fmt.Sprint(paramtable.GetNodeID()),
|
||||
fmt.Sprint(segment.collectionID),
|
||||
fmt.Sprint(segment.partitionID),
|
||||
string(segType),
|
||||
segType.String(),
|
||||
// Note: this field is mutable after segment is loaded.
|
||||
fmt.Sprint(segment.indexedFieldInfos.Len()),
|
||||
).Dec()
|
||||
|
|
Loading…
Reference in New Issue