Skip to content

Commit 2ab33c6

Browse files
authored
HDFS-17671 Suppress callstack when adding a datanode to deadnodes (#7180)
1 parent b9060fc commit 2ab33c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,9 @@ private synchronized DatanodeInfo blockSeekTo(long target)
672672
fetchBlockAt(target);
673673
} else {
674674
connectFailedOnce = true;
675-
DFSClient.LOG.warn("Failed to connect to {} for file {} for block "
676-
+ "{}, add to deadNodes and continue. ", targetAddr, src,
677-
targetBlock.getBlock(), ex);
675+
DFSClient.LOG.warn("Failed to connect to {} for file {} for block {}. Error is {}. "
676+
+ "Add to deadNodes and continue with other datanodes. ", targetAddr, src,
677+
targetBlock.getBlock(), ex.getMessage());
678678
// Put chosen node into dead list, continue
679679
addToLocalDeadNodes(chosenNode);
680680
dfsClient.addNodeToDeadNodeDetector(this, chosenNode);

0 commit comments

Comments
 (0)