mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suneel Marthi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAHOUT-1284) DummyRecordWriter's bug with reused Writables
Date Fri, 26 Jul 2013 21:55:49 GMT

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

Suneel Marthi commented on MAHOUT-1284:
---------------------------------------

[~maysamyabandeh] Got time to look at this today. There are tests in Mahout-integration that
are using DummyRecordWriter  -  TestConcatenateVectorsJob and RegexMapperTest, and are failing
with this patch. I'll take a stab at this again but could you verify this patch against the
present trunk?
                
> DummyRecordWriter's bug with reused Writables
> ---------------------------------------------
>
>                 Key: MAHOUT-1284
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1284
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.7, 0.8
>            Reporter: Maysam Yabandeh
>            Assignee: Suneel Marthi
>            Priority: Minor
>              Labels: test
>             Fix For: 0.9
>
>         Attachments: MAHOUT-1284.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> It is a recommended practice to reuse the Writable objects. DummyRecordWriter, which
is used for testing in Mahout, however keeps the same Writable instance in a map: next time
that the user reuses the Writable object, the internal map of DummyRecordWriter changes as
well. This makes DummyRecordWriter fail for testing the MapReduce jobs that reuse the Writables.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message