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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • mrv1, mrv2
    • 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

        1. apache-sortedMapWritable.patch
          0.7 kB
          Ahmed Radwan

        Activity

          People

            ahmed.radwan Ahmed Radwan
            ahmed.radwan Ahmed Radwan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: