mirror of https://github.com/milvus-io/milvus.git
RootCoord set healthy state after registered service (#15261)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>pull/15268/head
parent
3eb5cc4bad
commit
f564ea7fc7
|
@ -275,6 +275,7 @@ func (s *Server) start() error {
|
|||
log.Error("RootCoord registers service failed", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -937,6 +937,9 @@ func (c *Core) Register() error {
|
|||
syscall.Kill(syscall.Getpid(), syscall.SIGINT)
|
||||
}
|
||||
})
|
||||
|
||||
c.UpdateStateCode(internalpb.StateCode_Healthy)
|
||||
log.Debug("RootCoord start successfully ", zap.String("State Code", internalpb.StateCode_Healthy.String()))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -1194,9 +1197,6 @@ func (c *Core) Start() error {
|
|||
go c.checkFlushedSegmentsLoop()
|
||||
Params.RootCoordCfg.CreatedTime = time.Now()
|
||||
Params.RootCoordCfg.UpdatedTime = time.Now()
|
||||
|
||||
c.UpdateStateCode(internalpb.StateCode_Healthy)
|
||||
log.Debug("RootCoord start successfully ", zap.String("State Code", internalpb.StateCode_Healthy.String()))
|
||||
})
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue