Revert "HDFS-7857. Improve authentication failure WARN message to avoid user confusion. Contributed by Yongjun Zhang."

This reverts commit d799fbe1cc.
This commit is contained in:
Yongjun Zhang 2015-03-08 20:54:43 -07:00
parent d799fbe1cc
commit 5578e22ce9

View File

@ -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()) {