HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao.

(cherry picked from commit b07c266dca)
(cherry picked from commit 72ea641468)
This commit is contained in:
Andrew Wang 2016-09-08 18:30:18 -07:00
parent c45f1ec858
commit 912631a226
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ public class URLConnectionFactory {
return openConnection(url, false); return openConnection(url, false);
} catch (AuthenticationException e) { } catch (AuthenticationException e) {
// Unreachable // Unreachable
LOG.error("Open connection {} failed", url, e);
return null; return null;
} }
} }