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

This commit is contained in:
Steve Loughran 2015-10-18 12:23:34 +01:00
parent 390f29ab99
commit b390aae467
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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];
}
}