From e286512a7143427f2975ec92cdc4fad0a093a456 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Sun, 18 Oct 2015 12:23:34 +0100 Subject: [PATCH] HADOOP-12450. UserGroupInformation should not log at WARN level if no groups are found. (Elliott Clark via stevel) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/security/UserGroupInformation.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index af10154602..31a8065537 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. 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 b511494cb7..483420cd3d 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 synchronized String[] getGroupNames() { (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]; } }