hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject hadoop git commit: In Balancer, the target task should be removed when its size < 0. Contributed by Yiqun Lin
Date Tue, 13 Sep 2016 06:35:25 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 a39a9fc46 -> 9afc6615b


In Balancer, the target task should be removed when its size < 0.  Contributed by Yiqun
Lin

(cherry picked from commit cefa21e98a12b06602ee8000f8cef6c3b17af999)


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

Branch: refs/heads/branch-2.7
Commit: 9afc6615b0f6da58e7a8cedd06299e84fe372356
Parents: a39a9fc
Author: Tsz-Wo Nicholas Sze <szetszwo@hortonworks.com>
Authored: Thu Aug 4 09:45:40 2016 -0700
Committer: Zhe Zhang <zhz@apache.org>
Committed: Mon Sep 12 23:28:34 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/9afc6615/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 b5f886d..e175330 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
@@ -716,7 +716,7 @@ public class Dispatcher {
             long blockSize = pendingBlock.block.getNumBytes();
             incScheduledSize(-blockSize);
             task.size -= blockSize;
-            if (task.size == 0) {
+            if (task.size <= 0) {
               i.remove();
             }
             return pendingBlock;


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