svn merge -c 1580977 from trunk for HADOOP-10015. UserGroupInformation prints out excessive warnings.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1580978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2014-03-24 18:38:17 +00:00
parent c2d8ab6085
commit 77b05150a7
2 changed files with 6 additions and 1 deletions

View File

@ -77,6 +77,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

@ -1548,7 +1548,9 @@ public class UserGroupInformation {
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) {