mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-04 11:18:44 +08:00
Fix Root Start hang (#10765)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
parent
6fddcb3925
commit
76ef1c9657
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user