Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 39917 invoked from network); 3 Dec 2007 01:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 01:49:04 -0000 Received: (qmail 89323 invoked by uid 500); 3 Dec 2007 01:48:52 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 89294 invoked by uid 500); 3 Dec 2007 01:48:52 -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 89284 invoked by uid 99); 3 Dec 2007 01:48:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2007 17:48:52 -0800 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, 03 Dec 2007 01:48:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 43066714204 for ; Sun, 2 Dec 2007 17:48:43 -0800 (PST) Message-ID: <19267646.1196646523271.JavaMail.jira@brutus> Date: Sun, 2 Dec 2007 17:48:43 -0800 (PST) From: "Jim Kellerman (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-2323) JobTracker.close() prints stack traces for exceptions that are not errors In-Reply-To: <910797.1196462803398.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-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Kellerman updated HADOOP-2323: ---------------------------------- Priority: Minor (was: Major) > JobTracker.close() prints stack traces for exceptions that are not errors > ------------------------------------------------------------------------- > > Key: HADOOP-2323 > URL: https://issues.apache.org/jira/browse/HADOOP-2323 > Project: Hadoop > Issue Type: Bug > Components: mapred > Affects Versions: 0.16.0 > Reporter: Jim Kellerman > Assignee: Jim Kellerman > Priority: Minor > Fix For: 0.16.0 > > Attachments: patch.txt > > > JobTracker.close() prints a stack trace for an interrupted exception even though it was the method that interrupted the thread that threw the exception. For example: > {code} > this.expireTrackers.stopTracker(); > try { > this.expireTrackersThread.interrupt(); > this.expireTrackersThread.join(); > } catch (InterruptedException ex) { > ex.printStackTrace(); > } > {code} > Well of course it is going to catch an InterruptedException after it just interrupted the thread! > This is *not* an error and should *not* be dumped to the logs! > In other circumstances, catching InterruptedException is entirely appropriate. Just not in close where you've told the thread to shutdown and then interrupted it to ensure it does! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.