mrunit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MRUNIT-158) withOutput doesn't generate useful information with MapWritable on error
Date Tue, 20 Nov 2012 17:35:03 GMT

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

Patrick Hunt commented on MRUNIT-158:
-------------------------------------

bq.  If you run your test using the run() method rather than runTest(), you are provided with
all the output pairs in a list which you can iterate through and do whatever you like with.


cool, this was not obvious to me. Perhaps the suggestion from Dave Beech could be combined
with this? i.e. when the warn message is output it could include a reference to using the
run method to get more detail and work around the limitation of MapWritable (et. al.)

I will enter a jira against Hadoop re adding the toString.
                
> withOutput doesn't generate useful information with MapWritable on error
> ------------------------------------------------------------------------
>
>                 Key: MRUNIT-158
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-158
>             Project: MRUnit
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Patrick Hunt
>            Priority: Minor
>
> Using withOutput generates the following, notice that the hashcode is printed rather
than some useful detail as to the content of the maps:
> Nov 9, 2012 2:40:01 PM org.apache.hadoop.mrunit.TestDriver logError
> SEVERE: Missing expected output (null-0, org.apache.hadoop.io.MapWritable@e1) at position
0.
> Nov 9, 2012 2:40:01 PM org.apache.hadoop.mrunit.TestDriver logError
> SEVERE: Received unexpected output (null-0, org.apache.hadoop.io.MapWritable@2059) at
position 0.

--
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