tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject [16/23] git commit: TEZ-1040. Fix a bug which could cause the Merger to hang. (sseth)
Date Fri, 20 Jun 2014 22:35:54 GMT
TEZ-1040. Fix a bug which could cause the Merger to hang. (sseth)


Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/8a592a6e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/8a592a6e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/8a592a6e

Branch: refs/heads/branch-0.4.1-incubating
Commit: 8a592a6e07985e8a77c45b3790487efb5d031bd0
Parents: 7079ae9
Author: Siddharth Seth <sseth@apache.org>
Authored: Fri Apr 11 11:03:42 2014 -0700
Committer: Siddharth Seth <sseth@apache.org>
Committed: Fri Jun 20 15:34:45 2014 -0700

----------------------------------------------------------------------
 .../org/apache/tez/runtime/library/common/sort/impl/TezMerger.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/8a592a6e/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java
----------------------------------------------------------------------
diff --git a/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java
b/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java
index ee62b70..be21280 100644
--- a/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java
+++ b/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java
@@ -813,6 +813,8 @@ public class TezMerger {
         }
         segmentSizes.add(pos, mergedSize);
 
+        n -= (f-1);
+        f = factor;
       }
 
       return totalBytes;


Mime
View raw message