From 2ab33c672eaa69fad09062b693bff1e9b7c3881b Mon Sep 17 00:00:00 2001 From: Xing Lin Date: Mon, 25 Nov 2024 09:53:13 -0800 Subject: [PATCH] HDFS-17671 Suppress callstack when adding a datanode to deadnodes (#7180) --- .../main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java index b54694fab1101..fa5c3127d3992 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java @@ -672,9 +672,9 @@ private synchronized DatanodeInfo blockSeekTo(long target) fetchBlockAt(target); } else { connectFailedOnce = true; - DFSClient.LOG.warn("Failed to connect to {} for file {} for block " - + "{}, add to deadNodes and continue. ", targetAddr, src, - targetBlock.getBlock(), ex); + DFSClient.LOG.warn("Failed to connect to {} for file {} for block {}. Error is {}. " + + "Add to deadNodes and continue with other datanodes. ", targetAddr, src, + targetBlock.getBlock(), ex.getMessage()); // Put chosen node into dead list, continue addToLocalDeadNodes(chosenNode); dfsClient.addNodeToDeadNodeDetector(this, chosenNode);