HADOOP-11291. Log the cause of SASL connection failures. Contributed by Stephen Chu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7dae5b5a Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7dae5b5a Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7dae5b5a Branch: refs/heads/HDFS-EC Commit: 7dae5b5a880205fd0125c143c44498db79c19392 Parents: 0abb973 Author: cnauroth <cnaur...@apache.org> Authored: Wed Nov 12 21:54:06 2014 -0800 Committer: cnauroth <cnaur...@apache.org> Committed: Wed Nov 12 21:54:06 2014 -0800 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7dae5b5a/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 1a304d7..732cdc7 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -380,6 +380,9 @@ Release 2.7.0 - UNRELEASED HADOOP-10786. Fix UGI#reloginFromKeytab on Java 8. (Stephen Chu via wheat9) + HADOOP-11291. Log the cause of SASL connection failures. + (Stephen Chu via cnauroth) + OPTIMIZATIONS BUG FIXES http://git-wip-us.apache.org/repos/asf/hadoop/blob/7dae5b5a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java index 84fe552..45a4660 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java @@ -668,7 +668,7 @@ public class Client { String msg = "Couldn't setup connection for " + UserGroupInformation.getLoginUser().getUserName() + " to " + remoteId; - LOG.warn(msg); + LOG.warn(msg, ex); throw (IOException) new IOException(msg).initCause(ex); } } else {