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); fetchBlockAt(target);
} else { } else {
connectFailedOnce = true; connectFailedOnce = true;
DFSClient.LOG.warn("Failed to connect to {} for block {}, " + DFSClient.LOG.warn("Failed to connect to {} for file {} for block "
"add to deadNodes and continue. ", targetAddr, + "{}, add to deadNodes and continue. ", targetAddr, src,
targetBlock.getBlock(), ex); targetBlock.getBlock(), ex);
// Put chosen node into dead list, continue // Put chosen node into dead list, continue
addToDeadNodes(chosenNode); addToDeadNodes(chosenNode);