Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 7811 invoked from network); 15 Oct 2007 10:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2007 10:39:12 -0000 Received: (qmail 84723 invoked by uid 500); 15 Oct 2007 10:38:59 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 84685 invoked by uid 500); 15 Oct 2007 10:38:59 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 84676 invoked by uid 99); 15 Oct 2007 10:38:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 03:38:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 10:39:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACD5471420A for ; Mon, 15 Oct 2007 03:38:50 -0700 (PDT) Message-ID: <97912.1192444730705.JavaMail.jira@brutus> Date: Mon, 15 Oct 2007 03:38:50 -0700 (PDT) From: "Arun C Murthy (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2051) JobTracker's TaskCommitQueue is vulnerable to non-IOExceptions In-Reply-To: <32157574.1192267310728.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-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534796 ] Arun C Murthy commented on HADOOP-2051: --------------------------------------- FindBugs is complaining that I'm catching Exception, which is precisely the point of this jira. *smile* {noformat} REC_CATCH_EXCEPTION: Exception is caught when Exception is not thrown This method uses a try-catch block that catches Exception objects, but Exception is not thrown within the try block, and RuntimeException is not explicitly caught. It is a common bug pattern to say try { ... } catch (Exception e) { something } as a shorthand for catching a number of types of exception each of whose catch blocks is identical, but this construct also accidentally catches RuntimeException as well, masking potential bugs. {noformat} > JobTracker's TaskCommitQueue is vulnerable to non-IOExceptions > -------------------------------------------------------------- > > Key: HADOOP-2051 > URL: https://issues.apache.org/jira/browse/HADOOP-2051 > Project: Hadoop > Issue Type: Bug > Components: mapred > Affects Versions: 0.15.0 > Reporter: Arun C Murthy > Assignee: Arun C Murthy > Priority: Blocker > Fix For: 0.15.0 > > Attachments: HADOOP-2051_1_20071013.patch > > > The {{JobTracker#TaskCommitQueue#run}} method only handles {{IOException}}s. Christian Kunz ran into a scenario where a job was stuck with all tasks in {{COMMIT_PENDING}} state and the stack traces showed that the "Task Commit Thread" wasn't even around. > The work-around is to model {{TaskCommitQueue#run}} along the lines of other long-running threads in the {{JobTracer}} ({{ExpireLaunchingTasks}}, {{ExpireTrackers}} etc.) to catch, log and ignore any {{Exception}} in a loop. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.