HDFS-13440. Log HDFS file name when client fails to connect. Contributed by Gabor Bota.
This commit is contained in:
parent
ebe5853a45
commit
c95b9b5c07
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user