Fix metric with wrong label (#21127) (#21174)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/21178/head
zhenshan.cao 2022-12-13 11:47:22 +08:00 committed by GitHub
parent 3ca7971b68
commit 1c309a74ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -623,7 +623,7 @@ 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()),
).Inc()
if rowCount > 0 {
@ -731,7 +731,7 @@ 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(),
// Note: this field is mutable after segment is loaded.
fmt.Sprint(segment.indexedFieldInfos.Len()),
).Dec()