hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-1128) MRUnit Allows Iteration Twice
Date Thu, 05 Nov 2009 08:55:54 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773842#action_12773842
] 

Hudson commented on MAPREDUCE-1128:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #109 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/109/])
    . Fix MRUnit to prohibit iterating over values twice. Contributed by Aaron Kimball


> MRUnit Allows Iteration Twice
> -----------------------------
>
>                 Key: MAPREDUCE-1128
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1128
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.20.1
>         Environment: Java 1.6, Hadoop 0.21.1+133 (cloudera distribution for hadoop)
>            Reporter: Ed Kohlwey
>            Assignee: Aaron Kimball
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: MAPREDUCE-1128.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> MRUnit allows one to iterate over a collection of values twice (ie.
> reduce(Key key, Iterable<Value> values, Context context){
>    for(Value : values ) /* iterate once */;
>    for(Value : values ) /* iterate again */;
> }
> Hadoop will allow this as well, however the second iterator will be empty. MRUnit should
either match hadoop's behavior or warn the user that their code is likely flawed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message