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

Benoy Antony updated HADOOP-10824:
----------------------------------

    Attachment: HADOOP-10824.patch

Attaching the patch which replaces _ReadWriteLock_ with _volatile_ without \ 
change in functionality and thread safety. The new code performs better when 
many threads access the acls

> Refactor KMSACLs to avoid locking
> ---------------------------------
>
>                 Key: HADOOP-10824
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10824
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-10824.patch
>
>
> Currently _KMSACLs_ is made thread safe using _ReadWriteLock_. It is possible 
> to safely publish the _acls_ collection using _volatile_.
> Similar refactoring has been done in 
> [HADOOP-10448|https://issues.apache.org/jira/browse/HADOOP-10448?focusedCommentId=13980112&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13980112]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to