hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sam liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6191) TestJavaSerialization fails with getting incorrect MR job result
Date Thu, 11 Dec 2014 03:24:12 GMT

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

sam liu commented on MAPREDUCE-6191:
------------------------------------

[A] Reason of failure:
Before executing the UT, there is already a file under the INPUT_DIR used as the MR input
dir, such as 'hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/target/test-dir/input/0'.
So the MR result is incorrect, as the input dir includes extra file.

[B] Solution:
Update UT code to remove the whole INPUT_DIR before execution, not only removing INPUT_FILE.
(I did such tests and they all passed)

> TestJavaSerialization fails with getting incorrect MR job result
> ----------------------------------------------------------------
>
>                 Key: MAPREDUCE-6191
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6191
>             Project: Hadoop Map/Reduce
>          Issue Type: Test
>          Components: test
>    Affects Versions: 2.6.0
>            Reporter: sam liu
>            Assignee: sam liu
>            Priority: Minor
>
> TestJavaSerialization#testMapReduceJob() fails with getting incorrect MR job result:
> "junit.framework.ComparisonFailure: expected:<[a ]1> but was:<[0 1]1>"



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

Mime
View raw message