mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
fix:[cherry-pick]Panic if ProcessActiveStandBy returns error (#33372)
pr:#33369 issue:#33368 Signed-off-by: wayblink <anyang.wang@zilliz.com>
This commit is contained in:
parent
b205d7e29f
commit
deebae70a7
@ -274,13 +274,13 @@ func (s *Server) Register() error {
|
||||
err := s.session.ProcessActiveStandBy(s.activateFunc)
|
||||
if err != nil {
|
||||
log.Error("failed to activate standby datacoord server", zap.Error(err))
|
||||
return
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = s.icSession.ForceActiveStandby(nil)
|
||||
if err != nil {
|
||||
log.Error("failed to force activate standby indexcoord server", zap.Error(err))
|
||||
return
|
||||
panic(err)
|
||||
}
|
||||
afterRegister()
|
||||
}()
|
||||
|
@ -160,7 +160,7 @@ func (s *Server) Register() error {
|
||||
go func() {
|
||||
if err := s.session.ProcessActiveStandBy(s.activateFunc); err != nil {
|
||||
log.Error("failed to activate standby server", zap.Error(err))
|
||||
return
|
||||
panic(err)
|
||||
}
|
||||
afterRegister()
|
||||
}()
|
||||
|
@ -280,7 +280,7 @@ func (c *Core) Register() error {
|
||||
go func() {
|
||||
if err := c.session.ProcessActiveStandBy(c.activateFunc); err != nil {
|
||||
log.Warn("failed to activate standby rootcoord server", zap.Error(err))
|
||||
return
|
||||
panic(err)
|
||||
}
|
||||
afterRegister()
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user