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-6581
Commit: dc27ee9ae9e1d5d8ea081edbcc72d6ed65e0d9fd
Parents: 8de20a1
Author: Jing Zhao <ji...@apache.org>
Authored: Thu Sep 11 14:19:18 2014 -0700
Committer: Jing Zhao <ji...@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;

Reply via email to