MRunit ReduceDriver does not fully replicate the reducers behaviour with reusing pointers over the iterator

Details

Description

The MRunit ReduceDriver does not replicate the behaviour of re-using the pointer to the returned values as they are iterated over. This is a problem for testing as it does not fail when you are incorrectly storing this pointer for a value if you want to use it later on in the iteration over the values.

The behaviour should be modified so the iterator will return the same pointer every time.

Dan Harvey
added a comment - 30/May/11 17:15 This was discussed in the mailing lists last year
http://mail-archives.apache.org/mod_mbox/hadoop-mapreduce-user/201012.mbox/%3CAANLkTinMDb9NLkNXYQg=8=aFBbQt7GNuZoVpk8+avcqj@mail.gmail.com%3E
We've got code for this we will clean up and submit as a patch as soon as we can.