[ https://issues.apache.org/jira/browse/MRUNIT-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590644#comment-13590644
]
Hudson commented on MRUNIT-167:
-------------------------------
Integrated in mrunit-trunk #795 (See [https://builds.apache.org/job/mrunit-trunk/795/])
MRUNIT-167: context passed to an OuputFormatter is ignored by the framework (Revision
0d261d6298ed2377a85fdeb60d574a62c204b4b7)
Result = SUCCESS
brock : https://git-wip-us.apache.org/repos/asf?p=mrunit.git&a=commit&h=0d261d6298ed2377a85fdeb60d574a62c204b4b7
Files :
* src/main/java/org/apache/hadoop/mrunit/internal/output/MockOutputCreator.java
* src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/MockMapreduceOutputFormat.java
* src/main/java/org/apache/hadoop/mrunit/MapDriver.java
* src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java
* src/test/java/org/apache/hadoop/mrunit/mapreduce/TestMapDriver.java
* src/main/java/org/apache/hadoop/mrunit/ReduceDriver.java
> context passed to an OuputFormatter is ignored by the framework
> ---------------------------------------------------------------
>
> Key: MRUNIT-167
> URL: https://issues.apache.org/jira/browse/MRUNIT-167
> Project: MRUnit
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Patrick Hunt
> Assignee: Brock Noland
> Priority: Blocker
> Fix For: 1.0.0
>
> Attachments: MRUNIT-167-0.patch, MRUNIT-167-1.patch
>
>
> The following method creates a context that it passes to the output formatter under test,
however it ignores the results:
> bq. org.apache.hadoop.mrunit.internal.mapreduce.MockMapreduceOutputFormat.collect(K,
V)
> specifically if the output formatter increments counters the counters are not available
to the test code. (DummyReporter just creates a new Counter() each time) In my case I'm incrementing
counters in my output formatter but these counters are not available when I check in my junit
test method at the end of the test run.
> I'm using the latest 1.0.0 snapshot with hadoop2 classifier.
--
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
|