pbacsko commented on PR #841:
URL: https://github.com/apache/yunikorn-core/pull/841#issuecomment-2051416382

   > Just a discussion for another possible solution. Maybe we can simply 
change queue.IsManaged() to lock free call.
   > 
   > Below are the assignment for queue.isManaged
   > 
   > 1. NewConfiguredQueue()          // It lock free as it cannot be 
referenced yet
   > 2. (sq *Queue) applyConf()       // lock free call, must be called holding 
the queue lock or during create only
   > 3. newDynamicQueueInternal() <- NewDynamicQueue()  //  lock free as it 
cannot be referenced yet
   > 4. newDynamicQueueInternal() <- NewRecoveryQueue()  //  cannot be directly 
referenced
   
   Not sure I get the idea. Managed status can change during runtime during 
config update. So read-write operations must be performed while holding a lock. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to