HADOOP-6717. Log levels in o.a.h.security.Groups too high. Todd Lipcon via jghoman.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@937881 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jakob Homan 2010-04-25 21:23:30 +00:00
parent 18262cc096
commit 5075d7dbde
2 changed files with 5 additions and 2 deletions

View File

@ -223,6 +223,9 @@ Trunk (unreleased changes)
HADOOP-6635. Install/deploy source jars to Maven repo.
(Patrick Angeles via jghoman)
HADOOP-6717. Log levels in o.a.h.security.Groups too high
(Todd Lipcon via jghoman)
OPTIMIZATIONS
HADOOP-6467. Improve the performance on HarFileSystem.listStatus(..).

View File

@ -73,14 +73,14 @@ public List<String> getGroups(String user) throws IOException {
long now = System.currentTimeMillis();
// if cache has a value and it hasn't expired
if (groups != null && (groups.getTimestamp() + cacheTimeout > now)) {
LOG.info("Returning cached groups for '" + user + "'");
LOG.debug("Returning cached groups for '" + user + "'");
return groups.getGroups();
}
// Create and cache user's groups
groups = new CachedGroups(impl.getGroups(user));
userToGroupsMap.put(user, groups);
LOG.info("Returning fetched groups for '" + user + "'");
LOG.debug("Returning fetched groups for '" + user + "'");
return groups.getGroups();
}