hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "runlinzhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11764) NPE when the GroupMappingServiceProvider has no group
Date Mon, 08 May 2017 05:19:04 GMT
runlinzhang created HDFS-11764:

             Summary: NPE when the GroupMappingServiceProvider has no group 
                 Key: HDFS-11764
                 URL: https://issues.apache.org/jira/browse/HDFS-11764
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: security
    Affects Versions: 2.7.2
            Reporter: runlinzhang
            Priority: Critical
             Fix For: 2.7.2

The following code can throw NPE if GroupMappingServiceProvider.getGroups() returns null.

public List<String> load(String user) throws Exception {
      List<String> groups = fetchGroupList(user);

      if (groups.isEmpty()) {
        if (isNegativeCacheEnabled()) {

        // We throw here to prevent Cache from retaining an empty group
        throw noGroupsForUser(user);

      return groups;


This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message