未验证 提交 76ef1c96 编写于 作者: X Xiaofan 提交者: GitHub

Fix Root Start hang (#10765)

Signed-off-by: Nxiaofan-luan <xiaofan.luan@zilliz.com>
上级 6fddcb39
......@@ -1088,19 +1088,19 @@ func (c *Core) Start() error {
c.startOnce.Do(func() {
if err := c.proxyManager.WatchProxy(); err != nil {
log.Debug("RootCoord Start WatchProxy failed", zap.Error(err))
return
log.Fatal("RootCoord Start WatchProxy failed", zap.Error(err))
// you can not just stuck here,
panic(err)
}
if err := c.reSendDdMsg(c.ctx, false); err != nil {
log.Debug("RootCoord Start reSendDdMsg failed", zap.Error(err))
return
log.Fatal("RootCoord Start reSendDdMsg failed", zap.Error(err))
panic(err)
}
c.wg.Add(4)
go c.startTimeTickLoop()
go c.tsLoop()
go c.chanTimeTick.StartWatch(&c.wg)
go c.checkFlushedSegmentsLoop()
go c.session.LivenessCheck(c.ctx, func() {
log.Error("Root Coord disconnected from etcd, process will exit", zap.Int64("Server Id", c.session.ServerID))
})
......@@ -1108,10 +1108,9 @@ func (c *Core) Start() error {
Params.UpdatedTime = time.Now()
c.stateCode.Store(internalpb.StateCode_Healthy)
log.Debug(typeutil.RootCoordRole+" start successfully ", zap.String("State Code", internalpb.StateCode_name[int32(internalpb.StateCode_Healthy)]))
})
log.Debug(typeutil.RootCoordRole, zap.String("State Code", internalpb.StateCode_name[int32(internalpb.StateCode_Healthy)]))
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册