From c95b9b5c077c5b95649d195bd7385a76604863c1 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Thu, 31 May 2018 15:20:59 -0700 Subject: [PATCH] HDFS-13440. Log HDFS file name when client fails to connect. Contributed by Gabor Bota. --- .../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 b38e629903..e250873589 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 @@ -593,8 +593,8 @@ private synchronized DatanodeInfo blockSeekTo(long target) fetchBlockAt(target); } else { connectFailedOnce = true; - DFSClient.LOG.warn("Failed to connect to {} for block {}, " + - "add to deadNodes and continue. ", targetAddr, + DFSClient.LOG.warn("Failed to connect to {} for file {} for block " + + "{}, add to deadNodes and continue. ", targetAddr, src, targetBlock.getBlock(), ex); // Put chosen node into dead list, continue addToDeadNodes(chosenNode);