You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Mauro Murari (JIRA)" <ji...@apache.org> on 2015/01/31 03:36:34 UTC

[jira] [Assigned] (HADOOP-5454) SortedMapWritable: readFields() will not clear values before deserialization

     [ https://issues.apache.org/jira/browse/HADOOP-5454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mauro Murari reassigned HADOOP-5454:
------------------------------------

    Assignee: Mauro Murari

> SortedMapWritable: readFields() will not clear values before deserialization
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-5454
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5454
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.19.1
>            Reporter: Stefan Podkowinski
>            Assignee: Mauro Murari
>
> 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.



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