Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18179106D4 for ; Wed, 19 Mar 2014 20:40:16 +0000 (UTC) Received: (qmail 46948 invoked by uid 500); 19 Mar 2014 20:40:09 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 46876 invoked by uid 500); 19 Mar 2014 20:40:08 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 46866 invoked by uid 99); 19 Mar 2014 20:40:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 20:40:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hubaghdadi@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 20:40:04 +0000 Received: by mail-ie0-f182.google.com with SMTP id y20so9519744ier.41 for ; Wed, 19 Mar 2014 13:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BmhZHwvT/7+Iv6JpJuOl/8FANhkOCSU/nyybcaT9rpU=; b=zv7n5jedAkXd7lmS4V3Zhsyl51GoOsfZbrM6EGM/xnVw3/vAhks412BaGgkey2FlRT 3GuDAvyS7CJoD0jmPRp6eGugqQHqjRnrAVk5huEqvAPVk550gMImmUt9XfYoJNCKFw/b MZPAkDbYEM84OJrVplezdaGXlfdxFuaNkrYZsH5Ej/8O8PJbEBktO53ZAsZQr/RgoVbn UjBRmQflPxwxtzNk2aMD9CM1IzISgvSKThBwePuiqhdsSxXDSgoqmSB85Xjp+fOpC8Qy CMQFuyhvPNQTQNtUCYHx9FPnl1BUX2OwgJx2QBs/bakxq8KXJih3xcZEx1tOyHA8TjLI FMKw== X-Received: by 10.50.137.100 with SMTP id qh4mr27431741igb.34.1395261583821; Wed, 19 Mar 2014 13:39:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.225.233 with HTTP; Wed, 19 Mar 2014 13:39:03 -0700 (PDT) In-Reply-To: References: From: Hussein Baghdadi Date: Wed, 19 Mar 2014 21:39:03 +0100 Message-ID: Subject: Re: Fixing MAPREDUCE-5748 To: common-dev Content-Type: multipart/alternative; boundary=001a11c31f7412ed6704f4fba72c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c31f7412ed6704f4fba72c Content-Type: text/plain; charset=ISO-8859-1 Hi Karthik, I submitted the patch to https://issues.apache.org/jira/browse/MAPREDUCE-5748 I followed http://wiki.apache.org/hadoop/HowToContribute Thank you. Best, Hussein. On Wed, Mar 19, 2014 at 9:33 PM, Karthik Kambatla wrote: > Hey Hussein > > Thanks for picking MAPREDUCE-5748 up. Can you post the patch on the JIRA, > and we can continue the conversation there? > > Thanks > Karthik > > > On Wed, Mar 19, 2014 at 12:55 PM, Hussein Baghdadi >wrote: > > > Hi, > > > > I tried to fix MAPREDUCE-5748 > > > > What I did is to add another condition in addition to checking for nulls. > > I'm checking whether mapIds is empty or not > > > > if (mapIds == null || mapIds.size() == 0 || reduceQ == null || jobQ == > > null) > > > > I also created a unit test where 'map' param is missing. I'm not sure > > about the quality of the unit test but I tried my best. > > > > Here in the email, you can find a patch file. > > > > Thanks for help and time. > > > > Best, > > Hussein. > > > > -- > > > > *Deep into that darkness peering, long I stood there, wondering, fearing, > > doubting, dreaming dreams no mortal ever dared to dream before. Edgar > Allan > > Poe* > > > -- *Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before.Edgar Allan Poe* --001a11c31f7412ed6704f4fba72c--