HDFS-13440. Log HDFS file name when client fails to connect. Contributed by Gabor Bota.

This commit is contained in:
Wei-Chiu Chuang 2018-05-31 15:20:59 -07:00
parent ebe5853a45
commit c95b9b5c07

View File

@ -593,8 +593,8 @@ private synchronized DatanodeInfo blockSeekTo(long target)
fetchBlockAt(target);
} else {
connectFailedOnce = true;
DFSClient.LOG.warn("Failed to connect to {} for block {}, " +
"add to deadNodes and continue. ", targetAddr,
DFSClient.LOG.warn("Failed to connect to {} for file {} for block "
+ "{}, add to deadNodes and continue. ", targetAddr, src,
targetBlock.getBlock(), ex);
// Put chosen node into dead list, continue
addToDeadNodes(chosenNode);