mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix an issue where working task might get cleaned up (#19888)
/kind improvement Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com> Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>
This commit is contained in:
parent
b361842e9a
commit
762045adff
@ -889,7 +889,7 @@ func (m *importManager) expireOldTasksFromMem() {
|
||||
defer m.workingLock.Unlock()
|
||||
for _, v := range m.workingTasks {
|
||||
taskExpiredAndStateUpdated := false
|
||||
if taskExpired(v) {
|
||||
if v.GetState().GetStateCode() != commonpb.ImportState_ImportCompleted && taskExpired(v) {
|
||||
log.Info("a working task has expired", zap.Int64("task ID", v.GetId()))
|
||||
taskID := v.GetId()
|
||||
m.workingLock.Unlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user