[
https://issues.apache.org/jira/browse/HADOOP-11234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245414#comment-14245414
]
Benoy Antony commented on HADOOP-11234:
---------------------------------------
[~zhaoyunjiong], could you please take a look at HADOOP-10852 ? There are a few
other thread safety issues with this class. I have attempted to solve it in a
different way.
> Potential thread unsafe in NetgroupCache
> ----------------------------------------
>
> Key: HADOOP-11234
> URL: https://issues.apache.org/jira/browse/HADOOP-11234
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Reporter: zhaoyunjiong
> Assignee: zhaoyunjiong
> Priority: Minor
> Attachments: HADOOP-11234.patch
>
>
> In function getNetgroups:
> {code}
> if(netgroupToUsersMapUpdated) {
> netgroupToUsersMapUpdated = false; // at the beginning to avoid race
> {code}
> However, netgroupToUsersMapUpdated was not thread safe:
> {code}
> private static boolean netgroupToUsersMapUpdated = true;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)