Skip to content

Commit

Permalink
fix: Deadlock in compaction handler (milvus-io#37868)
Browse files Browse the repository at this point in the history
issue: milvus-io#37803

Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 authored Nov 21, 2024
1 parent 70e6a00 commit 2159526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/datacoord/compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2159526

Please sign in to comment.