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 634717637 for ; Thu, 11 Aug 2011 03:11:58 +0000 (UTC) Received: (qmail 31027 invoked by uid 500); 11 Aug 2011 03:11:58 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 30777 invoked by uid 500); 11 Aug 2011 03:11:55 -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 30451 invoked by uid 99); 11 Aug 2011 03:11:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 03:11: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; Thu, 11 Aug 2011 03:11: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 51A80B7629 for ; Thu, 11 Aug 2011 03:11:27 +0000 (UTC) Date: Thu, 11 Aug 2011 03:11:27 +0000 (UTC) From: "Abhijit Suresh Shingate (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1042228900.26495.1313032287331.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-111) JobTracker.getSystemDir throws NPE if it is called during intialization 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-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082871#comment-13082871 ] Abhijit Suresh Shingate commented on MAPREDUCE-111: --------------------------------------------------- Hi Amreshwari, >From my understanding, the while loop and try catch block takes care that the FileSystem must be initialised properly and then only JobTracker should proceed with other tasks. Do you see any scenario where the org.apache.hadoop.mapred.JobTracker.getSystemDir() is called even before the fs is set? Thanks & Regards, Abhijit > JobTracker.getSystemDir throws NPE if it is called during intialization > ----------------------------------------------------------------------- > > Key: MAPREDUCE-111 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-111 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: jobtracker > Reporter: Amareshwari Sriramadasu > > JobTracker.getSystemDir throws NPE if it is called during intialization. > It should check if fileSystem is null and throw IllegalStateException, as in getFilesystemName method. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira