RootCoord set healthy state after registered service (#15261)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/15268/head
cai.zhang 2022-01-18 12:09:37 +08:00 committed by GitHub
parent 3eb5cc4bad
commit f564ea7fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -275,6 +275,7 @@ func (s *Server) start() error {
log.Error("RootCoord registers service failed", zap.Error(err))
return err
}
return nil
}

View File

@ -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