hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject git commit: HDFS-7039. Archival Storage: fix Balancer tests. Contributed by Tsz Wo Nicholas Sze.
Date Thu, 11 Sep 2014 21:19:32 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-6584 8de20a198 -> dc27ee9ae


HDFS-7039. Archival Storage: fix Balancer tests. Contributed by Tsz Wo Nicholas Sze.


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

Branch: refs/heads/HDFS-6584
Commit: dc27ee9ae9e1d5d8ea081edbcc72d6ed65e0d9fd
Parents: 8de20a1
Author: Jing Zhao <jing9@apache.org>
Authored: Thu Sep 11 14:19:18 2014 -0700
Committer: Jing Zhao <jing9@apache.org>
Committed: Thu Sep 11 14:19:18 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/dc27ee9a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java
index e4b7d4e..df6aa99 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java
@@ -965,9 +965,6 @@ public class Dispatcher {
     if (target.storageType != targetStorageType) {
       return false;
     }
-    if (!target.hasSpaceForScheduling(block.getNumBytes())) {
-      return false;
-    }
     // check if the block is moved or not
     if (movedBlocks.contains(block.getBlock())) {
       return false;


Mime
View raw message