You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2017/08/08 00:02:00 UTC

[jira] [Created] (HADOOP-14743) CompositeGroupsMapping should not swallow exceptions

Wei-Chiu Chuang created HADOOP-14743:
----------------------------------------

             Summary: CompositeGroupsMapping should not swallow exceptions
                 Key: HADOOP-14743
                 URL: https://issues.apache.org/jira/browse/HADOOP-14743
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Wei-Chiu Chuang
            Assignee: Wei-Chiu Chuang


{code:title=CompositeGroupsMapping#getGroups}
   for (GroupMappingServiceProvider provider : providersList) {
      try {
        groups = provider.getGroups(user);
      } catch (Exception e) {
        //LOG.warn("Exception trying to get groups for user " + user, e);      
      }        
      if (groups != null && ! groups.isEmpty()) {
        groupSet.addAll(groups);
        if (!combined) break;
      }
    }
{code}
If anything fails inside the underlying groups mapping service provider, there's no way to tell what went wrong.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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