mirror of https://github.com/milvus-io/milvus.git
enhance: Init channel cp metric when DataCoord recover (#35353)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/35385/head
parent
c0ee25afd8
commit
61a426bc6f
|
@ -221,6 +221,9 @@ func (m *meta) reloadFromKV() error {
|
||||||
// for 2.2.2 issue https://github.com/milvus-io/milvus/issues/22181
|
// for 2.2.2 issue https://github.com/milvus-io/milvus/issues/22181
|
||||||
pos.ChannelName = vChannel
|
pos.ChannelName = vChannel
|
||||||
m.channelCPs.checkpoints[vChannel] = pos
|
m.channelCPs.checkpoints[vChannel] = pos
|
||||||
|
ts, _ := tsoutil.ParseTS(pos.Timestamp)
|
||||||
|
metrics.DataCoordCheckpointUnixSeconds.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), vChannel).
|
||||||
|
Set(float64(ts.Unix()))
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("DataCoord meta reloadFromKV done", zap.Duration("duration", record.ElapseSpan()))
|
log.Info("DataCoord meta reloadFromKV done", zap.Duration("duration", record.ElapseSpan()))
|
||||||
|
|
Loading…
Reference in New Issue