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

CompositeGroupsMapping should not swallow exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.9.0, 3.0.0-beta1
    • security
    • None

    Description

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

      If anything fails inside the underlying groups mapping service provider, there's no way to tell what went wrong.

      Attachments

        1. HADOOP-14743.001.patch
          0.9 kB
          Wei-Chiu Chuang
        2. HADOOP-14743.002.patch
          0.9 kB
          Wei-Chiu Chuang

        Activity

          People

            weichiu Wei-Chiu Chuang
            weichiu Wei-Chiu Chuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: