Start querycoord after root/datacoord healthy (#12145)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/12145/merge
xige-16 2021-11-20 08:23:13 +08:00 committed by GitHub
parent 8c947109a9
commit 03f63b7ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ func (s *Server) init() error {
}
// wait for master init or healthy
log.Debug("QueryCoord try to wait for RootCoord ready")
err = funcutil.WaitForComponentInitOrHealthy(s.loopCtx, s.rootCoord, "RootCoord", 1000000, time.Millisecond*200)
err = funcutil.WaitForComponentHealthy(s.loopCtx, s.rootCoord, "RootCoord", 1000000, time.Millisecond*200)
if err != nil {
log.Debug("QueryCoord wait for RootCoord ready failed", zap.Error(err))
panic(err)
@ -168,7 +168,7 @@ func (s *Server) init() error {
panic(err)
}
log.Debug("QueryCoord try to wait for DataCoord ready")
err = funcutil.WaitForComponentInitOrHealthy(s.loopCtx, s.dataCoord, "DataCoord", 1000000, time.Millisecond*200)
err = funcutil.WaitForComponentHealthy(s.loopCtx, s.dataCoord, "DataCoord", 1000000, time.Millisecond*200)
if err != nil {
log.Debug("QueryCoord wait for DataCoord ready failed", zap.Error(err))
panic(err)