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

Brock Noland commented on MRUNIT-77:
------------------------------------

This is great work! Thank you for fixing my bugs!
                
> cannot use serializations that do not clone into object, or serializations 
> without no arg constructors with reduce driver
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MRUNIT-77
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-77
>             Project: MRUnit
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Jim Donofrio
>            Assignee: Jim Donofrio
>             Fix For: 1.0.0
>
>
>   @Test
>   public void testJavaSerialization() {
>     ReduceDriver<Integer, Integer, Integer, Integer> driver = 
> ReduceDriver.newReduceDriver(new IdentityReducer<Integer, Integer>());
>     Configuration conf = new Configuration();
>     conf.set("io.serializations", 
> "org.apache.hadoop.io.serializer.JavaSerialization");
>     driver.setConfiguration(conf);
>     driver.withInputKey(1)
>           .withInputValue(2)
>           .withInputValue(3)
>           .withInputValue(4)
>           .withOutput(1, 2)
>           .withOutput(1, 3)
>           .withOutput(1, 4)
>           .runTest();
>   }
> The above test fails because the result of copy(next, value, conf) needs to 
> be reassigned to value for serializations such as java serialization that 
> dont change the copy argument. This also fails because of the lack of a no 
> arg constructor which breaks the call to ReflectionUtils.newInstance(klass, 
> conf)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to