Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10315

Log the original exception when getGroups() fail in UGI.

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.23.10, 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

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

        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];
          }
        }
      

        Attachments

        1. HADOOP-10315.v1.patch
          0.9 kB
          Ted Yu

        Issue Links

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              kihwal Kihwal Lee

              Dates

              • Created:
                Updated:

                Issue deployment