Browse Source

HADOOP-12450. UserGroupInformation should not log at WARN level if no groups are found. (Elliott Clark via stevel)

Steve Loughran 9 years ago
parent
commit
e286512a71

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -932,6 +932,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-11984. Enable parallel JUnit tests in pre-commit.
     (Chris Nauroth via vinayakumarb)
 
+    HADOOP-12450. UserGroupInformation should not log at WARN level if no groups
+    are found. (Elliott Clark via stevel)
+
   BUG FIXES
 
     HADOOP-12374. Updated expunge command description.

+ 3 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

@@ -1528,7 +1528,9 @@ public class UserGroupInformation {
         (groups.getGroups(getShortUserName()));
       return result.toArray(new String[result.size()]);
     } catch (IOException ie) {
-      LOG.warn("No groups available for user " + getShortUserName());
+      if (LOG.isDebugEnabled()) {
+        LOG.debug("No groups available for user " + getShortUserName());
+      }
       return new String[0];
     }
   }