You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2020/12/08 09:15:00 UTC

[jira] [Created] (YUNIKORN-481) deadlock when removing allocation ask

Wilfred Spiegelenburg created YUNIKORN-481:
----------------------------------------------

             Summary: deadlock when removing allocation ask
                 Key: YUNIKORN-481
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-481
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
    Affects Versions: 0.10
            Reporter: Wilfred Spiegelenburg
            Assignee: Wilfred Spiegelenburg


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. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org