You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tez.apache.org by "Jaume M (JIRA)" <ji...@apache.org> on 2018/08/20 20:32:00 UTC

[jira] [Created] (TEZ-3981) UnorderedPartitionedKVWriter.getInitialMemoryRequirement may return negative memory

Jaume M created TEZ-3981:
----------------------------

             Summary: UnorderedPartitionedKVWriter.getInitialMemoryRequirement may return negative memory
                 Key: TEZ-3981
                 URL: https://issues.apache.org/jira/browse/TEZ-3981
             Project: Apache Tez
          Issue Type: Bug
    Affects Versions: 0.9.1
            Reporter: Jaume M


The reason for this is because [here|https://github.com/apache/tez/blob/4b9a7be1b98cff00c44e7d3ffb2486bb59ca6804/tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/writers/UnorderedPartitionedKVWriter.java#L678] first we shift the int, and then we assign it to the long, therefore if the int is bigger than {{2^12}} when shifting {{20}} it becomes a negative value. We should cast to long and then do the shift. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)