You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2026/07/13 05:42:00 UTC

[jira] [Resolved] (YUNIKORN-3318) Deadlock in preemption init caused by app reservations

     [ https://issues.apache.org/jira/browse/YUNIKORN-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wilfred Spiegelenburg resolved YUNIKORN-3318.
---------------------------------------------
    Fix Version/s: 1.9.0
       Resolution: Fixed

Change committed to master and cherry-picked into branch-1.9

> Deadlock in preemption init caused by app reservations
> ------------------------------------------------------
>
>                 Key: YUNIKORN-3318
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-3318
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: core - scheduler
>    Affects Versions: 1.8.0
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Wilfred Spiegelenburg
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.9.0
>
>
> If an application {{A}} holds a reservation {{R}} on a node {{N}} the preemption initialisation will deadlock.
> During the {{initWorkingState()}} call reservations are released from a node if they are older than the timeout and the priority is lower than the allocation we are trying to preempt for. This is done as reserved nodes are excluded from preemption. The initialisation is called by the scheduling cycle which holds the application lock. The release of the reservation via {{UnReserve()}} requires that same application lock.
> Removing the reservation from the queue also requires the same application lock as we need to get the queue from the application that holds the reservation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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