From b390aae467fe0fc9cfc660b6808d4b71be9774ac 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 975db86f10f..9cf5c0b5ed8 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. 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 ab999c0a664..0c82173a5be 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]; } }