Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6215

Map is not cleared in SortedMapWritable.readFields(DataInput in)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: mrv1, mrv2
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ahmed.radwan Ahmed Radwan
              Reporter:
              ahmed.radwan Ahmed Radwan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: