From dc27ee9ae9e1d5d8ea081edbcc72d6ed65e0d9fd Mon Sep 17 00:00:00 2001 From: Jing Zhao Date: Thu, 11 Sep 2014 14:19:18 -0700 Subject: [PATCH] HDFS-7039. Archival Storage: fix Balancer tests. Contributed by Tsz Wo Nicholas Sze. --- .../org/apache/hadoop/hdfs/server/balancer/Dispatcher.java | 3 --- 1 file changed, 3 deletions(-) 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 e4b7d4e812..df6aa99684 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 @@ private boolean isGoodBlockCandidate(StorageGroup source, StorageGroup target, 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;