hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Balashov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-5849) ReduceContextImpl.ValueIterable can only be iterated once
Date Fri, 18 Apr 2014 14:41:19 GMT
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)

Mime
View raw message