Skip to content

Commit c463cd0

Browse files
committed
HADOOP-18138. UserGroupInformation shouldn't log exception
1 parent 2f448ac commit c463cd0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,8 +1871,7 @@ protected Subject getSubject() {
18711871
@InterfaceStability.Evolving
18721872
public <T> T doAs(PrivilegedAction<T> action) {
18731873
if (LOG.isDebugEnabled()) {
1874-
LOG.debug("PrivilegedAction [as: {}][action: {}]", this, action,
1875-
new Exception());
1874+
LOG.debug("PrivilegedAction [as: {}][action: {}]", this, action);
18761875
}
18771876
return Subject.doAs(subject, action);
18781877
}
@@ -1894,8 +1893,7 @@ public <T> T doAs(PrivilegedExceptionAction<T> action
18941893
) throws IOException, InterruptedException {
18951894
try {
18961895
if (LOG.isDebugEnabled()) {
1897-
LOG.debug("PrivilegedAction [as: {}][action: {}]", this, action,
1898-
new Exception());
1896+
LOG.debug("PrivilegedAction [as: {}][action: {}]", this, action);
18991897
}
19001898
return Subject.doAs(subject, action);
19011899
} catch (PrivilegedActionException pae) {

0 commit comments

Comments
 (0)