mirror of https://github.com/milvus-io/milvus.git
fix: Deadlock in compaction handler (#37868)
issue: #37803 Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/37906/head
parent
70e6a00ba1
commit
2159526e80
|
@ -303,6 +303,7 @@ func (c *compactionPlanHandler) schedule() []CompactionTask {
|
|||
c.executingGuard.Lock()
|
||||
c.executingTasks[t.GetTaskProto().GetPlanID()] = t
|
||||
if len(c.executingTasks) >= parallelism {
|
||||
c.executingGuard.Unlock()
|
||||
break // 2. the parallelism of running tasks is reached
|
||||
}
|
||||
c.executingGuard.Unlock()
|
||||
|
|
Loading…
Reference in New Issue