From 912631a226f85c2680e51a11d414ee92af5a57c9 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Thu, 8 Sep 2016 18:30:18 -0700 Subject: [PATCH] HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao. (cherry picked from commit b07c266dca7f303c793b432a0738d593728cf2b3) (cherry picked from commit 72ea64146810bb5010280145ee7cad9fb9375aad) --- .../java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java index 975f72e8f61..96095db8114 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java @@ -183,6 +183,7 @@ public class URLConnectionFactory { return openConnection(url, false); } catch (AuthenticationException e) { // Unreachable + LOG.error("Open connection {} failed", url, e); return null; } }