You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Ed Kohlwey (JIRA)" <ji...@apache.org> on 2009/10/21 14:55:59 UTC
[jira] Created: (MAPREDUCE-1128) MRUnit Allows Iteration Twice
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
Priority: Minor
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.