HDFS-11993. Add log info when connect to datanode socket address failed. Contributed by chencan

This commit is contained in:
Ravi Prakash 2017-06-26 13:24:27 -07:00
parent 2c367b464c
commit a9d3412b4c

View File

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