zhaoyunjiong created HADOOP-11234: ------------------------------------- Summary: 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
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)