[ https://issues.apache.org/jira/browse/MRUNIT-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13656380#comment-13656380 ]
Jason Novak commented on MRUNIT-187: ------------------------------------ I noticed that setInputKey() and addInputValue() are deprecated, so I tried setInput(final K1 key, final List<V1> values) but got the same results. > previous outputs not cleared by ReduceDriver.run() > -------------------------------------------------- > > Key: MRUNIT-187 > URL: https://issues.apache.org/jira/browse/MRUNIT-187 > Project: MRUnit > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Jason Novak > > I have a unit test that reuses the same ReduceDriver with 2 different sets of > inputs. With 1.0.0, the second call to reduceDriver.run() returns the first > run's outputs as well as the second's. This is a regression since > 0.9.0-incubating. > Pseudocode: > // called twice > reduceDriver.setInputKey(key); > for (int i = 0; i < 5 ; ++i) { > reduceDriver.addInputValue(v); > } > List<Pair<K, V>> outputs = reduceDriver.run(); -- 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