未验证 提交 19000e6a 编写于 作者: C congqixia 提交者: GitHub

Update indexcoord state to unhealthy before stopping (#12723)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 cad5466a
......@@ -275,6 +275,9 @@ func (i *IndexCoord) Start() error {
// Stop stops the IndexCoord component.
func (i *IndexCoord) Stop() error {
// https://github.com/milvus-io/milvus/issues/12282
i.UpdateStateCode(internalpb.StateCode_Abnormal)
i.loopCancel()
i.sched.Close()
i.loopWg.Wait()
......@@ -283,9 +286,6 @@ func (i *IndexCoord) Stop() error {
}
i.session.Revoke(time.Second)
// https://github.com/milvus-io/milvus/issues/12282
i.UpdateStateCode(internalpb.StateCode_Abnormal)
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册