tez-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaume M (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TEZ-3981) UnorderedPartitionedKVWriter.getInitialMemoryRequirement may return negative memory
Date Mon, 20 Aug 2018 20:32:00 GMT
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)

Mime
View raw message