Revert "HDFS-7857. Improve authentication failure WARN message to avoid user confusion. Contributed by Yongjun Zhang."
This reverts commit d799fbe1ccf8752c44f087e34b5f400591d3b5bd. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/38b921a8 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/38b921a8 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/38b921a8 Branch: refs/heads/HDFS-7285 Commit: 38b921a88feeffb4e12070ed866cb0f171c36f8c Parents: 129f88a Author: Yongjun Zhang <yzh...@cloudera.com> Authored: Sun Mar 8 20:54:43 2015 -0700 Committer: Jing Zhao <ji...@apache.org> Committed: Mon Mar 9 13:17:55 2015 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/ipc/Server.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/38b921a8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java ---------------------------------------------------------------------- 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 d2d61b3..893e0eb 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 @@ public abstract class Server { 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()) {