hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yq...@apache.org
Subject hadoop git commit: HDFS-11494. Log message when DN is not selected for block replication. Contributed by Yiqun Lin.
Date Sat, 04 Mar 2017 05:42:27 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 b26870c58 -> 2288857e3


HDFS-11494. Log message when DN is not selected for block replication. Contributed by Yiqun
Lin.


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

Branch: refs/heads/branch-2
Commit: 2288857e3bf8c738d6c1ca7982523d6e4788f859
Parents: b26870c
Author: Yiqun Lin <yqlin@apache.org>
Authored: Sat Mar 4 13:41:49 2017 +0800
Committer: Yiqun Lin <yqlin@apache.org>
Committed: Sat Mar 4 13:41:49 2017 +0800

----------------------------------------------------------------------
 .../hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2288857e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java
index 974b6dd..e9c6b65 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeDescriptor.java
@@ -637,6 +637,10 @@ public class DatanodeDescriptor extends DatanodeInfo {
       }
     }
     if (requiredSize > remaining - scheduledSize) {
+      LOG.debug(
+          "The node {} does not have enough {} space (required={},"
+          + " scheduled={}, remaining={}).",
+          this, t, requiredSize, scheduledSize, remaining);
       return null;
     }
     return storage;


---------------------------------------------------------------------
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