hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject hadoop git commit: In Balancer, the target task should be removed when its size < 0. Contributed by Yiqun Lin
Date Thu, 04 Aug 2016 16:51:14 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 942251523 -> 8c9b44eaf


In Balancer, the target task should be removed when its size < 0.  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/8c9b44ea
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8c9b44ea
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8c9b44ea

Branch: refs/heads/trunk
Commit: 8c9b44eaffb776e71a41358864cb5c28ecd8bfec
Parents: 9422515
Author: Tsz-Wo Nicholas Sze <szetszwo@hortonworks.com>
Authored: Thu Aug 4 09:45:40 2016 -0700
Committer: Tsz-Wo Nicholas Sze <szetszwo@hortonworks.com>
Committed: Thu Aug 4 09:45:40 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/8c9b44ea/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 16e42e0..a75cb30 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
@@ -795,7 +795,7 @@ public class Dispatcher {
             long blockSize = pendingBlock.reportedBlock.getNumBytes(this);
             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