HADOOP-10015. UserGroupInformation prints out excessive warnings. Contributed by Nicolas Liochon

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1580977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2014-03-24 18:36:40 +00:00
parent 0f1eda6bbf
commit f89ede8d86
2 changed files with 6 additions and 1 deletions

View File

@ -380,6 +380,9 @@ Release 2.4.0 - UNRELEASED
based on connection properties. (Benoy Antony and Daryn Sharp via
Arpit Agarwal)
HADOOP-10015. UserGroupInformation prints out excessive warnings.
(Nicolas Liochon via szetszwo)
OPTIMIZATIONS
BUG FIXES

View File

@ -1597,7 +1597,9 @@ public <T> T doAs(PrivilegedExceptionAction<T> action
return Subject.doAs(subject, action);
} catch (PrivilegedActionException pae) {
Throwable cause = pae.getCause();
LOG.warn("PriviledgedActionException as:"+this+" cause:"+cause);
if (LOG.isDebugEnabled()) {
LOG.debug("PrivilegedActionException as:" + this + " cause:" + cause);
}
if (cause instanceof IOException) {
throw (IOException) cause;
} else if (cause instanceof Error) {