You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Hedger Lai (Jira)" <ji...@apache.org> on 2026/10/06 14:02:00 UTC

[jira] [Created] (YUNIKORN-3496) [Core] Preemption can drop victim queue below guaranteed quota in calculateAdditionalVictims

Hedger Lai created YUNIKORN-3496:
------------------------------------

             Summary: [Core] Preemption can drop victim queue below guaranteed quota in calculateAdditionalVictims
                 Key: YUNIKORN-3496
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-3496
             Project: Apache YuniKorn
          Issue Type: Improvement
            Reporter: Hedger Lai
            Assignee: Hedger Lai


Similar to {{calculateVictimsByNode()}} (YUNIKORN-3492), {{Preemptor.calculateAdditionalVictims()}} removes a candidate victim from {{queueSnapshot}} first and then checks {{resources.StrictlyGreaterThanOrEquals(queueSnapshot.GetPreemptableResource(), resources.Zero)}}.

Because {{QueuePreemptionSnapshot.GetPreemptableResource()}} strips all non-positive values ({{v <= 0}}), this check always evaluates to {{true}} and fails to prevent a candidate victim from dropping the victim queue (or its ancestors) below its guaranteed resource floor.

To fix this, compute {{preemptableResource}} before removing the candidate victim and verify {{preemptableResource.FitIn(victim.GetAllocatedResource())}} before calling {{queueSnapshot.RemoveAllocation()}}.



--
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