Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 91898 invoked from network); 25 Feb 2009 05:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 05:15:34 -0000 Received: (qmail 45747 invoked by uid 500); 25 Feb 2009 05:15:27 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 45733 invoked by uid 500); 25 Feb 2009 05:15:27 -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 45722 invoked by uid 99); 25 Feb 2009 05:15:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 21:15:27 -0800 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; Wed, 25 Feb 2009 05:15:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A425A234C495 for ; Tue, 24 Feb 2009 21:15:04 -0800 (PST) Message-ID: <1553978731.1235538904671.JavaMail.jira@brutus> Date: Tue, 24 Feb 2009 21:15:04 -0800 (PST) From: "Amareshwari Sriramadasu (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5306) Job History file can have empty string as http port after JobTracker Restart in case of lost TT, which can result in NumberFormatException when JT is restarted 2nd time In-Reply-To: <1797538214.1235378702408.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676506#action_12676506 ] Amareshwari Sriramadasu commented on HADOOP-5306: ------------------------------------------------- +1 patch looks good. > Job History file can have empty string as http port after JobTracker Restart in case of lost TT, which can result in NumberFormatException when JT is restarted 2nd time > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: HADOOP-5306 > URL: https://issues.apache.org/jira/browse/HADOOP-5306 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Reporter: Ravi Gummadi > Assignee: Amar Kamat > Priority: Blocker > Fix For: 0.20.0 > > Attachments: HADOOP-5306-v1.0.patch > > > HTTP_PORT="" is seen in job history file after JT recovery in case of lost TT. The .recover file of TestJobTrackerRestartWithLostTracker has empty string as HTTP_PORT. If another time JT is restarted and then JT tries to read the history line and tries to createTaskAttempt, it would get NumberFormatException because of Integer.parseInt(httpPort). We somehow need to log a legal value as HTTP_PORT in the history file OR the exception needs to be caught and proper action is to be taken. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.