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


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e286512a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e286512a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e286512a

Branch: refs/heads/trunk
Commit: e286512a7143427f2975ec92cdc4fad0a093a456
Parents: e2d59e2
Author: Steve Loughran <[email protected]>
Authored: Sun Oct 18 12:23:34 2015 +0100
Committer: Steve Loughran <[email protected]>
Committed: Sun Oct 18 12:23:43 2015 +0100

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                  | 3 +++
 .../java/org/apache/hadoop/security/UserGroupInformation.java    | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e286512a/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt 
b/hadoop-common-project/hadoop-common/CHANGES.txt
index af10154..31a8065 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/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.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/e286512a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
index b511494..483420c 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
+++ 
b/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];
     }
   }

Reply via email to