Ivan Balashov created MAPREDUCE-5849:
----------------------------------------

             Summary: ReduceContextImpl.ValueIterable can only be iterated once
                 Key: MAPREDUCE-5849
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5849
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 2.3.0
            Reporter: Ivan Balashov
            Priority: Minor


Since ValueIterable reuses same iterator object it cannot be iterated more than 
once. This behaviour is counter-intuitive (with regards to Iterable usage) and 
thus difficult to spot.

Unless there are particular performance concerns, new instance of Iterator 
should be returned.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to