Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.10
Description
A new deadlock was introduced in the scheduler as part of the refactor.
The deadlock can occur when an allocationAsk is removed from an application while the application is scheduled at the same point in time.
The removeAllocationAsk() call in the partitionContext is a write locked call taking the context lock it later tries to take the application write lock. While scheduling to check the nodes we are retrieving the node iterator from the partition. This retrieval is done by a write locked application which needs a read lock on the partition.
The removal of the ask should not hold the write lock on the partition while updating the application.
Attachments
Issue Links
- blocks
-
YUNIKORN-475 Move shim build to core without cache
- Closed
- is caused by
-
YUNIKORN-317 Cache/Scheduler modules need to be combined to a single module
- Closed
- relates to
-
YUNIKORN-461 Remove allocations map from the partition
- Closed
- links to