Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 87367 invoked from network); 14 May 2009 07:25:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 07:25:09 -0000 Received: (qmail 37902 invoked by uid 500); 14 May 2009 07:25:08 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 37846 invoked by uid 500); 14 May 2009 07:25:08 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 37836 invoked by uid 99); 14 May 2009 07:25:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 07:25:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Thu, 14 May 2009 07:25:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D874234C051 for ; Thu, 14 May 2009 00:24:45 -0700 (PDT) Message-ID: <1575816307.1242285885644.JavaMail.jira@brutus> Date: Thu, 14 May 2009 00:24:45 -0700 (PDT) From: =?utf-8?Q?Jord=C3=A0_Polo_=28JIRA=29?= To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5679) Resolve findbugs warnings in core/streaming/pipes/examples In-Reply-To: <880569008.1239784455231.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5679?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127= 09295#action_12709295 ]=20 Jord=C3=A0 Polo commented on HADOOP-5679: ------------------------------------ Running local jobs seems to fail for me since this patch was applied ("Mkdi= rs failed to create..."). The new code checks if either mkdirs() on hadoop.tmp.dir failed OR if it is= n't a directory... but it doesn't take into account that the directory may = already exist. If the directory existed before, it will always fail and exi= t since mkdirs() only returns "true" if it is able to create the directory. Wouldn't an AND be more appropriate here? I mean {{(!b && !tmpDir.isDirecto= ry())}} instead of {{(!b || !tmpDir.isDirectory())}} in src/core/org/apache= /hadoop/util/RunJar.java, line 111. > Resolve findbugs warnings in core/streaming/pipes/examples > ---------------------------------------------------------- > > Key: HADOOP-5679 > URL: https://issues.apache.org/jira/browse/HADOOP-5679 > Project: Hadoop Core > Issue Type: Bug > Reporter: Jothi Padmanabhan > Assignee: Jothi Padmanabhan > Fix For: 0.21.0 > > Attachments: hadoop-5679.patch > > > Towards a solution for HADOOP-5628, we need to resolve all findbugs warni= ngs. This jira will try to resolve the findbugs warnings where ever possibl= e and suppress them where resolution is not possible. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.