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:
parent
18262cc096
commit
5075d7dbde
@ -223,6 +223,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-6635. Install/deploy source jars to Maven repo.
|
HADOOP-6635. Install/deploy source jars to Maven repo.
|
||||||
(Patrick Angeles via jghoman)
|
(Patrick Angeles via jghoman)
|
||||||
|
|
||||||
|
HADOOP-6717. Log levels in o.a.h.security.Groups too high
|
||||||
|
(Todd Lipcon via jghoman)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-6467. Improve the performance on HarFileSystem.listStatus(..).
|
HADOOP-6467. Improve the performance on HarFileSystem.listStatus(..).
|
||||||
|
@ -73,14 +73,14 @@ public List<String> getGroups(String user) throws IOException {
|
|||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
// if cache has a value and it hasn't expired
|
// if cache has a value and it hasn't expired
|
||||||
if (groups != null && (groups.getTimestamp() + cacheTimeout > now)) {
|
if (groups != null && (groups.getTimestamp() + cacheTimeout > now)) {
|
||||||
LOG.info("Returning cached groups for '" + user + "'");
|
LOG.debug("Returning cached groups for '" + user + "'");
|
||||||
return groups.getGroups();
|
return groups.getGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create and cache user's groups
|
// Create and cache user's groups
|
||||||
groups = new CachedGroups(impl.getGroups(user));
|
groups = new CachedGroups(impl.getGroups(user));
|
||||||
userToGroupsMap.put(user, groups);
|
userToGroupsMap.put(user, groups);
|
||||||
LOG.info("Returning fetched groups for '" + user + "'");
|
LOG.debug("Returning fetched groups for '" + user + "'");
|
||||||
return groups.getGroups();
|
return groups.getGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user