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/08 16:04:00 UTC

[jira] [Created] (YUNIKORN-3508) Protect Queue.stateTime updates with queue lock during state transitions

Hedger Lai created YUNIKORN-3508:
------------------------------------

             Summary: Protect Queue.stateTime updates with queue lock during state transitions
                 Key: YUNIKORN-3508
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-3508
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
            Reporter: Hedger Lai


In YUNIKORN-3410, PartitionContext.handlePartitionEvent() was updated to protect pc.stateTime updates with the PartitionContext lock.

Similarly, in Queue.handleQueueEvent(), sq.stateTime is updated without consistently holding the queue lock across all callers (for example, MarkQueueForRemoval() invokes handleQueueEvent(Remove) without holding sq.Lock(), while Queue.String() reads sq.stateTime under sq.RLock()).

We should ensure sq.stateTime accesses and updates in Queue are properly synchronized under the queue lock.



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