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 EBF0B102BC for ; Fri, 23 Aug 2013 03:23:53 +0000 (UTC) Received: (qmail 11316 invoked by uid 500); 23 Aug 2013 03:23:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 11280 invoked by uid 500); 23 Aug 2013 03:23:52 -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 11253 invoked by uid 99); 23 Aug 2013 03:23:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 03:23:51 +0000 Date: Fri, 23 Aug 2013 03:23:51 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8565) stop-hbase.sh clean up: backup master 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/HBASE-8565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748247#comment-13748247 ] Lars Hofhansl commented on HBASE-8565: -------------------------------------- It's not currently broken, right? For 0.94 I'd be worried that this will create "surprises". > stop-hbase.sh clean up: backup master > ------------------------------------- > > Key: HBASE-8565 > URL: https://issues.apache.org/jira/browse/HBASE-8565 > Project: HBase > Issue Type: Bug > Components: master, scripts > Affects Versions: 0.94.7, 0.95.0 > Reporter: Jerry He > Assignee: Jerry He > Priority: Minor > Fix For: 0.98.0, 0.94.12, 0.96.0 > > Attachments: HBASE-8565-v1-0.94.patch, HBASE-8565-v1-trunk.patch > > > In stop-hbase.sh: > {code} > # TODO: store backup masters in ZooKeeper and have the primary send them a shutdown message > # stop any backup masters > "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" \ > --hosts "${HBASE_BACKUP_MASTERS}" stop master-backup > {code} > After HBASE-5213, stop-hbase.sh -> hbase master stop will bring down the backup master too via the cluster status znode. > We should not need the above code anymore. > Another issue happens when the current master died and the backup master became the active master. > {code} > nohup nice -n ${HBASE_NICENESS:-0} "$HBASE_HOME"/bin/hbase \ > --config "${HBASE_CONF_DIR}" \ > master stop "$@" > "$logout" 2>&1 < /dev/null & > waitForProcessEnd `cat $pid` 'stop-master-command' > {code} > We can still issue 'hbase-stop.sh' from the old master. > stop-hbase.sh -> hbase master stop -> look for active master -> request shutdown > This process still works. > But the waitForProcessEnd statement will not work since the local master pid is not relevant anymore. > What is the best way in the this case? -- 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