hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jh...@apache.org
Subject [13/21] hadoop git commit: HDFS-11494. Log message when DN is not selected for block replication. Contributed by Yiqun Lin
Date Mon, 06 Mar 2017 18:18:33 GMT
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/0f336bab
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0f336bab
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0f336bab

Branch: refs/heads/YARN-5734
Commit: 0f336bab9c070e0cdc935df4305084a036e2def7
Parents: 6b7cd62
Author: Mingliang Liu <liuml07@apache.org>
Authored: Fri Mar 3 18:47:13 2017 -0800
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Fri Mar 3 18:47:13 2017 -0800

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0f336bab/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 15af6ab..7b3e4e1 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
@@ -687,6 +687,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