hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravip...@apache.org
Subject hadoop git commit: HDFS-11993. Add log info when connect to datanode socket address failed. Contributed by chencan
Date Mon, 26 Jun 2017 20:25:46 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 b59b96dee -> ef491f463


HDFS-11993. Add log info when connect to datanode socket address failed. Contributed by chencan

(cherry picked from commit a9d3412b4ce40f5ab5a18756ede7e0606b653171)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ef491f46
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ef491f46
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ef491f46

Branch: refs/heads/branch-2
Commit: ef491f463799bdfd757d563bee145ce52765d3de
Parents: b59b96d
Author: Ravi Prakash <raviprak@altiscale.com>
Authored: Mon Jun 26 13:24:27 2017 -0700
Committer: Ravi Prakash <raviprak@altiscale.com>
Committed: Mon Jun 26 13:25:32 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ef491f46/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
----------------------------------------------------------------------
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 05b0b67..1cd420e 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
@@ -674,8 +674,9 @@ public class DFSInputStream extends FSInputStream
           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);
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message