Skip to content

Commit b869c87

Browse files
committed
[YUNIKORN-974] Fix deadlock in Application.IsAllocationAssignedToApp() (#347)
Closes: #347
1 parent ee37a6d commit b869c87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/scheduler/objects/application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ func (sa *Application) notifyRMAllocationAskReleased(rmID string, released []*Al
14511451

14521452
func (sa *Application) IsAllocationAssignedToApp(alloc *Allocation) bool {
14531453
sa.RLock()
1454-
defer sa.RLock()
1454+
defer sa.RUnlock()
14551455
_, ok := sa.allocations[alloc.UUID]
14561456
return ok
14571457
}

0 commit comments

Comments
 (0)