You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Ahmed Radwan (JIRA)" <ji...@apache.org> on 2015/01/13 08:23:34 UTC

[jira] [Created] (MAPREDUCE-6215) Map is not cleared in SortedMapWritable.readFields(DataInput in)

Ahmed Radwan created MAPREDUCE-6215:
---------------------------------------

             Summary: Map is not cleared in SortedMapWritable.readFields(DataInput in)
                 Key: MAPREDUCE-6215
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6215
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: mrv1, mrv2
    Affects Versions: trunk
            Reporter: Ahmed Radwan


The readFields(DataInput in) in SortedMapWritable doesn't reset the internally used SortedMap. If this Writable object is reused then entries will get accumulated in the map with every call of readFields().

I have seen this behavior when using SequenceFileInputFormat. See  SequenceFileRecordReader.java and SequenceFile.Reader.

 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)