Hadoop Common
  1. Hadoop Common
  2. HADOOP-5454

SortedMapWritable: readFields() will not clear values before deserialization

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.19.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In case SortedMapWritable is used as value in a reducer, the user must explicitly call clear() on the map between iterating values. This is because SortedMapWritable will be reused once instantiated, but consecutive calls to readFields() will not reset the maps internal state, as e.g. done by MapWritable. Please add this.instance.clear(); on top of readFields().
      You may also want to consider HADOOP-5028 for fixing another issue with this class.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Podkowinski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development