HDFS-11993. Add log info when connect to datanode socket address failed. Contributed by chencan
This commit is contained in:
parent
2c367b464c
commit
a9d3412b4c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user