You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kihwal Lee (JIRA)" <ji...@apache.org> on 2014/01/30 23:22:09 UTC

[jira] [Created] (HADOOP-10315) Log the original exception when getGroups() fail in UGI.

Kihwal Lee created HADOOP-10315:
-----------------------------------

             Summary: Log the original exception when getGroups() fail in UGI.
                 Key: HADOOP-10315
                 URL: https://issues.apache.org/jira/browse/HADOOP-10315
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 2.2.0, 0.23.10
            Reporter: Kihwal Lee


In UserGroupInformation, getGroupNames() swallows the original exception. There have been many occasions that more information on the original exception could have helped.

{code}
  public synchronized String[] getGroupNames() {
    ensureInitialized();
    try {
      List<String> result = groups.getGroups(getShortUserName());
      return result.toArray(new String[result.size()]);
    } catch (IOException ie) {
      LOG.warn("No groups available for user " + getShortUserName());
      return new String[0];
    }
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)