Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B792758C for ; Sat, 13 Aug 2011 20:29:52 +0000 (UTC) Received: (qmail 42523 invoked by uid 500); 13 Aug 2011 20:29:52 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 42431 invoked by uid 500); 13 Aug 2011 20:29:51 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 42415 invoked by uid 99); 13 Aug 2011 20:29:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 20:29:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 20:29:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 78273BB68B for ; Sat, 13 Aug 2011 20:29:27 +0000 (UTC) Date: Sat, 13 Aug 2011 20:29:27 +0000 (UTC) From: "Arun C Murthy (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1111379063.36288.1313267367489.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1152601941.4776.1311615489787.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MAPREDUCE-2727) MR-279: SleepJob throws divide by zero exception when count = 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arun C Murthy updated MAPREDUCE-2727: ------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) I just committed this to both trunk and MR-279. Thanks Jeffrey! > MR-279: SleepJob throws divide by zero exception when count = 0 > --------------------------------------------------------------- > > Key: MAPREDUCE-2727 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2727 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 0.23.0 > Reporter: Jeffrey Naisbitt > Assignee: Jeffrey Naisbitt > Fix For: 0.23.0 > > Attachments: MAPREDUCE-2727-trunk.patch, MAPREDUCE-2727.patch > > > When the count is 0 for mappers or reducers, a divide-by-zero exception is thrown. There are existing checks to error out when count < 0, which obviously doesn't handle the 0 case. This is causing the MRReliabilityTest to fail. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira