Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F030F7AB0 for ; Sat, 27 Aug 2011 03:10:10 +0000 (UTC) Received: (qmail 53726 invoked by uid 500); 27 Aug 2011 03:10:10 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 53555 invoked by uid 500); 27 Aug 2011 03:10:00 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 53529 invoked by uid 99); 27 Aug 2011 03:09:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2011 03:09:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2011 03:09:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 47B00D1011 for ; Sat, 27 Aug 2011 03:09:30 +0000 (UTC) Date: Sat, 27 Aug 2011 03:09:30 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1071689432.20324.1314414570290.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <65750022.42864.1313531007186.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4209) The HBase hbase-daemon.sh SIGKILLs master when stopping it 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/HBASE-4209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092174#comment-13092174 ] stack commented on HBASE-4209: ------------------------------ bq. suppressHdfsShutdownHook can't disable the HDFS shutdown hook of the miniDFS, simply because there's nothing to disable. There is no hdfs shutdown hook when running minihdfs? And I don't follow how testing for localfs helps. I'm not clear on why testing for local fs makes a differenc when the shutdown hook is not in minidfs (?). I'm missing something. bq. I'd appreciate your advice, since I'm just learning my way around HBase. You seem to be doing just fine to me. Obviously from above exchange you know more about this area of the code than I do (and I think I wrote it?). That suppressHdfsShutdownHook is really pretty (smile). Thats some ugly gymnastics going on in there. > The HBase hbase-daemon.sh SIGKILLs master when stopping it > ---------------------------------------------------------- > > Key: HBASE-4209 > URL: https://issues.apache.org/jira/browse/HBASE-4209 > Project: HBase > Issue Type: Bug > Components: master > Reporter: Roman Shaposhnik > > There's a bit of code in hbase-daemon.sh that makes HBase master being SIGKILLed when stopping it rather than trying SIGTERM (like it does for other daemons). When HBase is executed in a standalone mode (and the only daemon you need to run is master) that causes newly created tables to go missing as unflushed data is thrown out. If there was not a good reason to kill master with SIGKILL perhaps we can take that special case out and rely on SIGTERM. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira