hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Acherkan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10898) MapWritable instances cannot be reused when containing different custom Writable classes.
Date Thu, 03 Nov 2016 20:12:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15634094#comment-15634094
] 

Eli Acherkan commented on HADOOP-10898:
---------------------------------------

Thanks @VinciusMSAna, it definitely looks like the same issue. I'd love to help there (and
I think the patch I attached should solve the problem), but I'm a bit unfamiliar with the
process - could you tell me what should I do?.. The last comment on that issue says "Marking
it "Unassgined" in case someone else wants to take a stab it. Will reclaim if it is still
open by the time I get to it."

> MapWritable instances cannot be reused when containing different custom Writable classes.
> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-10898
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10898
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>            Reporter: Eli Acherkan
>            Priority: Minor
>         Attachments: HADOOP-10898.patch
>
>
> When a data stream contains several MapWritable instances, which contain instances of
several different custom classes (implementing Writable), attempting to reuse a single MapWritable
instance for reading the data stream results in an IllegalArgumentException. This happens
because AbstractMapWritable.readFields doesn't reset the classToIdMap/idToClassMap data structures.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message