mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Update indexnode state to unhealthy before stopping (#12744)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
19000e6af2
commit
38956215aa
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user