mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
Update querycoord state to unhealthy before stopping (#12905)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
2b22986e53
commit
615b23a7b3
@ -221,12 +221,13 @@ func (qc *QueryCoord) Start() error {
|
||||
|
||||
// Stop function stops watching the meta and node updates
|
||||
func (qc *QueryCoord) Stop() error {
|
||||
qc.UpdateStateCode(internalpb.StateCode_Abnormal)
|
||||
|
||||
qc.scheduler.Close()
|
||||
log.Debug("close scheduler ...")
|
||||
qc.indexChecker.close()
|
||||
log.Debug("close index checker ...")
|
||||
qc.loopCancel()
|
||||
qc.UpdateStateCode(internalpb.StateCode_Abnormal)
|
||||
|
||||
qc.loopWg.Wait()
|
||||
qc.session.Revoke(time.Second)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user