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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.23.10, 2.2.0
    • None
    • None
    • None

    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

              yuzhihong@gmail.com Ted Yu
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: