Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 72590 invoked from network); 9 Apr 2009 19:30:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 19:30:42 -0000 Received: (qmail 30009 invoked by uid 500); 9 Apr 2009 19:30:42 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 29971 invoked by uid 500); 9 Apr 2009 19:30:42 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 29950 invoked by uid 99); 9 Apr 2009 19:30:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 19:30:42 +0000 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; Thu, 09 Apr 2009 19:30:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F3FF1234C051 for ; Thu, 9 Apr 2009 12:30:12 -0700 (PDT) Message-ID: <2032376181.1239305412984.JavaMail.jira@brutus> Date: Thu, 9 Apr 2009 12:30:12 -0700 (PDT) From: "Cheng (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Updated: (CHUKWA-98) PidFile issue In-Reply-To: <1287086391.1239057613138.JavaMail.jira@brutus> 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/CHUKWA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cheng updated CHUKWA-98: ------------------------ Status: Patch Available (was: Open) Use a new singleton class DaemonWatcher to wrapper PidFile class. It has a method bailout. When this method is called, shutdownhook will be removed and then call system.exit. > PidFile issue > ------------- > > Key: CHUKWA-98 > URL: https://issues.apache.org/jira/browse/CHUKWA-98 > Project: Hadoop Chukwa > Issue Type: Bug > Reporter: Jerome Boulon > Assignee: Cheng > Priority: Blocker > Attachments: chukwa-98.patch > > > Some processes like Collectors, demuxManager, etc have to be able to exit if they have to. > In that case, watchdog will not restart them since the shutdown hook will have done the cleanup. > pFile = new PidFile("Agent"); > Runtime.getRuntime().addShutdownHook(pFile); > pFile = new PidFile("Collector"); > Runtime.getRuntime().addShutdownHook(pFile); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.