Repository: tez Updated Branches: refs/heads/branch-0.9 9f13abde3 -> 128cc4bb1
TEZ-3981. UnorderedPartitionedKVWriter.getInitialMemoryRequirement may return negative memory (Jaume M via jeagles) (cherry picked from commit 22e2a21791295716e8891134f52b076bfbff1f8f) Project: http://git-wip-us.apache.org/repos/asf/tez/repo Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/128cc4bb Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/128cc4bb Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/128cc4bb Branch: refs/heads/branch-0.9 Commit: 128cc4bb1a083e8c8534dfca7995934260342279 Parents: 9f13abd Author: Jaume M <[email protected]> Authored: Mon Sep 24 16:13:24 2018 -0700 Committer: Jonathan Eagles <[email protected]> Committed: Mon Sep 24 16:16:57 2018 -0700 ---------------------------------------------------------------------- .../library/common/writers/UnorderedPartitionedKVWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tez/blob/128cc4bb/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java ---------------------------------------------------------------------- diff --git a/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java b/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java index 948417d..0486ddc 100644 --- a/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java +++ b/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java @@ -670,7 +670,7 @@ public class UnorderedPartitionedKVWriter extends BaseUnorderedPartitionedKVWrit } public static long getInitialMemoryRequirement(Configuration conf, long maxAvailableTaskMemory) { - int initialMemRequestMb = conf.getInt( + long initialMemRequestMb = conf.getInt( TezRuntimeConfiguration.TEZ_RUNTIME_UNORDERED_OUTPUT_BUFFER_SIZE_MB, TezRuntimeConfiguration.TEZ_RUNTIME_UNORDERED_OUTPUT_BUFFER_SIZE_MB_DEFAULT); Preconditions.checkArgument(initialMemRequestMb != 0,
