Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 E9753DE85 for ; Wed, 13 Mar 2013 04:20:15 +0000 (UTC) Received: (qmail 96242 invoked by uid 500); 13 Mar 2013 04:20:15 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 96189 invoked by uid 500); 13 Mar 2013 04:20:15 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 96174 invoked by uid 99); 13 Mar 2013 04:20:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 04:20:15 +0000 Date: Wed, 13 Mar 2013 04:20:15 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-9318) when exiting on a signal, print the signal name first MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13600796#comment-13600796 ] Suresh Srinivas edited comment on HADOOP-9318 at 3/13/13 4:19 AM: ------------------------------------------------------------------ Aaron, thanks for checking. bq. Each instance of Handler handles a different signal. Keep in mind that prevHandler will be different for each signal, so if we combined them all into one, we'd have to have some kind of Map or something to be able to call the correct prevHandler. So I think it's easier to leave them separate. Perhaps I do not understand the code correctly. Given that all a handler is doing is just printing a log, using a single instance of handler should be sufficient and need for separate instance does not seem necessary, unless different actions need to be taken for each signal. Again, this is not a big deal, since looking at the code I was not sure why multiple instances of handles are needed. If you think it is not an issue, please go ahead commit the patch. was (Author: sureshms): Aaron, thanks for checking. bq. Each instance of Handler handles a different signal. Keep in mind that prevHandler will be different for each signal, so if we combined them all into one, we'd have to have some kind of Map or something to be able to call the correct prevHandler. So I think it's easier to leave them separate. Perhaps I do not understand the code correctly. Given that all a handler is doing is just printing a log, using a single instance of handler should be sufficient and need for separate instance does not seem necessary, unless different actions need to be taken for each signal. Again, this is not a big deal. > when exiting on a signal, print the signal name first > ----------------------------------------------------- > > Key: HADOOP-9318 > URL: https://issues.apache.org/jira/browse/HADOOP-9318 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 2.0.5-beta > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Priority: Minor > Attachments: HADOOP-9318.001.patch, HADOOP-9318.002.patch, HADOOP-9318.003.patch > > > On UNIX, it would be nice to know when a Hadoop daemon had exited on a signal. For example, if a daemon exited because the system administrator sent SIGTERM (i.e. {{killall java}}), it would be nice to know that. Although some of this can be deduced from context and {{SHUTDOWN_MSG}}, it would be nice to have it be explicit. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira