mirror of https://github.com/milvus-io/milvus.git
fix: Use server ctx instead of loopCtx for datacoord LivenessCheck (#31691)
See also #31689 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/31647/head
parent
9750e78f1d
commit
fe2f34d76f
|
@ -277,7 +277,7 @@ func (s *Server) Register() error {
|
|||
metrics.NumNodes.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), typeutil.DataCoordRole).Inc()
|
||||
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()))
|
||||
os.Exit(1)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue