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

Update indexnode state to unhealthy before stopping (#12744)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 19000e6a
......@@ -215,6 +215,9 @@ func (i *IndexNode) Start() error {
// Stop closes the server.
func (i *IndexNode) Stop() error {
// https://github.com/milvus-io/milvus/issues/12282
i.UpdateStateCode(internalpb.StateCode_Abnormal)
i.loopCancel()
if i.sched != nil {
i.sched.Close()
......@@ -224,9 +227,6 @@ func (i *IndexNode) Stop() error {
}
i.session.Revoke(time.Second)
// https://github.com/milvus-io/milvus/issues/12282
i.UpdateStateCode(internalpb.StateCode_Abnormal)
log.Debug("Index node stopped.")
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册