mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 10:08:42 +08:00
fix: Use server ctx instead of loopCtx for datacoord LivenessCheck (#31691)
See also #31689 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
9750e78f1d
commit
fe2f34d76f
@ -277,7 +277,7 @@ func (s *Server) Register() error {
|
|||||||
metrics.NumNodes.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), typeutil.DataCoordRole).Inc()
|
metrics.NumNodes.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), typeutil.DataCoordRole).Inc()
|
||||||
log.Info("DataCoord Register Finished")
|
log.Info("DataCoord Register Finished")
|
||||||
|
|
||||||
s.session.LivenessCheck(s.serverLoopCtx, func() {
|
s.session.LivenessCheck(s.ctx, func() {
|
||||||
logutil.Logger(s.ctx).Error("disconnected from etcd and exited", zap.Int64("serverID", s.session.GetServerID()))
|
logutil.Logger(s.ctx).Error("disconnected from etcd and exited", zap.Int64("serverID", s.session.GetServerID()))
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user