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 45196D007 for ; Wed, 5 Sep 2012 04:48:49 +0000 (UTC) Received: (qmail 90719 invoked by uid 500); 5 Sep 2012 04:48:47 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 90237 invoked by uid 500); 5 Sep 2012 04:48:43 -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 90211 invoked by uid 99); 5 Sep 2012 04:48:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 04:48:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yhemanth@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-wg0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 04:48:37 +0000 Received: by wgbfm10 with SMTP id fm10so3378469wgb.5 for ; Tue, 04 Sep 2012 21:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8/98plJsBc4ZDoEGRWHFLXeKPMbsHGjubEA/Dq6ZccE=; b=kPlat6tUM/yJvrzBzooUuiDlqUTZsEYtFatv5c+6AA4JMO7D6f2OZtUW+F6WW6ICsF Dr8GXvcjmAn6m4+kGaCssdIi+MB1AtGnOQfg0VK2WjZoysb+SiNZSTw4jp0U2r1UqgIm IG+QXt9X20L8fE/9dWh8S1fbww2kAB+CvIoWPKxjYImFN6phyRJcSF2rKf0lAIsmcWyr DnynKlTOX4VhzVENdZGZhg1w+uhuMn3AJt0CQ0Siohicod5E/S6TwX2LJk5sJt/01lac JR5gw/bddz5PPOoWCLV9JxN6902hMwnpz2XtLhZR6DrQ+RUdvzUaVXlViacq6JscL9yp XxrA== MIME-Version: 1.0 Received: by 10.180.97.106 with SMTP id dz10mr35091565wib.21.1346820496236; Tue, 04 Sep 2012 21:48:16 -0700 (PDT) Received: by 10.223.76.20 with HTTP; Tue, 4 Sep 2012 21:48:16 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Sep 2012 10:18:16 +0530 Message-ID: Subject: Re: Unused API in LocalDirAllocator From: Hemanth Yamijala To: common-dev@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Thanks. Filed https://issues.apache.org/jira/browse/HADOOP-8765. Hemanth On Tue, Sep 4, 2012 at 6:22 PM, Robert Evans wrote: > I don't think it really matters that much. The API is limited Private and > unstable, so I would say just remove it, but fixing it is fine too. > Either way file a JIRA on it. > > --Bobby > > On 9/4/12 6:34 AM, "Hemanth Yamijala" wrote: > >>Hi, >> >>Stumbled on the fact that LocalDirAllocator.ifExists() is not used >>anywhere. The previous usage of this API was in the IsolationRunner >>that was removed in MAPREDUCE-2606. >> >>This API doesn't call the confChanged method and hence there is an >>uninitialised variable that causes a NullPointerException. So, either >>we can fix that, or remove the API if it's not required. This is also >>one of the reasons why the IsolationRunner was broken in 1.0. >> >>Thoughts ? >> >>Thanks >>hemanth >