Repository: hadoop Updated Branches: refs/heads/branch-2 390f29ab9 -> b390aae46 refs/heads/trunk e2d59e2c7 -> e286512a7
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/b390aae4 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b390aae4 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b390aae4 Branch: refs/heads/branch-2 Commit: b390aae467fe0fc9cfc660b6808d4b71be9774ac Parents: 390f29a 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:34 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/b390aae4/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 975db86..9cf5c0b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -344,6 +344,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/b390aae4/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 ab999c0..0c82173 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 @@ -1516,7 +1516,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]; } }
