You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ivan Balashov (JIRA)" <ji...@apache.org> on 2014/04/18 16:41:19 UTC

[jira] [Created] (MAPREDUCE-5849) ReduceContextImpl.ValueIterable can only be iterated once

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)