Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 696DF9227 for ; Fri, 17 Aug 2012 00:03:38 +0000 (UTC) Received: (qmail 50961 invoked by uid 500); 17 Aug 2012 00:03:38 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 50876 invoked by uid 500); 17 Aug 2012 00:03:38 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 50861 invoked by uid 99); 17 Aug 2012 00:03:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 00:03:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 018612C5BE1 for ; Fri, 17 Aug 2012 00:03:37 +0000 (UTC) Date: Fri, 17 Aug 2012 11:03:37 +1100 (NCT) From: "Roman Shaposhnik (JIRA)" To: bigtop-dev@incubator.apache.org Message-ID: <1574813671.21928.1345161818007.JavaMail.jiratomcat@arcas> In-Reply-To: <179443289.21821.1345160978356.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (BIGTOP-691) flume gets killed too fast when the service is asked to stop 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/BIGTOP-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roman Shaposhnik updated BIGTOP-691: ------------------------------------ Attachment: BIGTOP-691.patch.txt > flume gets killed too fast when the service is asked to stop > ------------------------------------------------------------ > > Key: BIGTOP-691 > URL: https://issues.apache.org/jira/browse/BIGTOP-691 > Project: Bigtop > Issue Type: Bug > Components: Init scripts > Affects Versions: 0.4.0 > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Fix For: 0.5.0 > > Attachments: BIGTOP-691.patch.txt > > > The flume stop script does the following: > kill -TERM ${FLUME_PID} &>/dev/null > sleep 5 > kill -KILL ${FLUME_PID} &>/dev/null > It is not recommended to kill -9 flume while it is shutting down. > The correct approach is to poll to see if the pid is up every second or so, after sending the intitial TERM signal, then after some long period of time (60 seconds) if the pid is still alive then kill -9 would be appropriate. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira