Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 63556 invoked from network); 21 Oct 2009 12:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 12:56:23 -0000 Received: (qmail 64471 invoked by uid 500); 21 Oct 2009 12:56:22 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 64144 invoked by uid 500); 21 Oct 2009 12:56:22 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 64092 invoked by uid 99); 21 Oct 2009 12:56:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 12:56:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 12:56:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84AD7234C1EF for ; Wed, 21 Oct 2009 05:55:59 -0700 (PDT) Message-ID: <1168890003.1256129759541.JavaMail.jira@brutus> Date: Wed, 21 Oct 2009 12:55:59 +0000 (UTC) From: "Ed Kohlwey (JIRA)" To: mapreduce-dev@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-1128) MRUnit Allows Iteration Twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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.