HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao.
(cherry picked from commitb07c266dca
) (cherry picked from commit72ea641468
)
This commit is contained in:
parent
c45f1ec858
commit
912631a226
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue