diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java index d2d61b398d..893e0eb890 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java @@ -1324,15 +1324,10 @@ private void saslProcess(RpcSaslProto saslMessage) saslResponse = processSaslMessage(saslMessage); } catch (IOException e) { rpcMetrics.incrAuthenticationFailures(); - if (LOG.isDebugEnabled()) { - LOG.debug(StringUtils.stringifyException(e)); - } // attempting user could be null - IOException tce = (IOException) getTrueCause(e); AUDITLOG.warn(AUTH_FAILED_FOR + this.toString() + ":" - + attemptingUser + " (" + e.getLocalizedMessage() - + ") with true cause: (" + tce.getLocalizedMessage() + ")"); - throw tce; + + attemptingUser + " (" + e.getLocalizedMessage() + ")"); + throw (IOException) getTrueCause(e); } if (saslServer != null && saslServer.isComplete()) {