mirror of https://github.com/milvus-io/milvus.git
Fix lifetime race in indexnode (#22645)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/22557/head
parent
7b71c69516
commit
9e17e2660e
|
@ -223,10 +223,10 @@ func (i *IndexNode) Stop() error {
|
|||
} else {
|
||||
i.waitTaskFinish()
|
||||
}
|
||||
i.lifetime.Wait()
|
||||
|
||||
// https://github.com/milvus-io/milvus/issues/12282
|
||||
i.UpdateStateCode(commonpb.StateCode_Abnormal)
|
||||
i.lifetime.Wait()
|
||||
log.Info("Index node abnormal")
|
||||
// cleanup all running tasks
|
||||
deletedTasks := i.deleteAllTasks()
|
||||
|
|
Loading…
Reference in New Issue