[ 
https://issues.apache.org/jira/browse/YARN-9805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927609#comment-16927609
 ] 

Jim Brennan commented on YARN-9805:
-----------------------------------

[~ahussein] here's my initial impression of the AutoCloseableRWLock().   I am 
concerned that some of the methods like release() and isLocked() are adding 
logic to deal with the fact that we don't know if we are operating on the 
readlock or the writelock.   I think a better approach would be to have 
wrappers for the readlock and writelock that implement AutoCloseable, rather 
than trying to do it at the AutoCloseableRWLock() level.

 

> Fine-grained SchedulerNode synchronization
> ------------------------------------------
>
>                 Key: YARN-9805
>                 URL: https://issues.apache.org/jira/browse/YARN-9805
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Ahmed Hussein
>            Assignee: Ahmed Hussein
>            Priority: Minor
>         Attachments: YARN-9805.001.patch, YARN-9805.002.patch, 
> YARN-9805.003.patch
>
>
> Yarn schedulerNode and RMNode are using synchronized methods on reading and 
> updating the resources.
> Instead, use read-write reentrant locks to provide fine-grained locking and 
> to avoid blocking concurrent reads.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to