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 935909202 for ; Tue, 20 Mar 2012 21:54:03 +0000 (UTC) Received: (qmail 42744 invoked by uid 500); 20 Mar 2012 21:54:03 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 42687 invoked by uid 500); 20 Mar 2012 21:54:03 -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 42678 invoked by uid 99); 20 Mar 2012 21:54:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 21:54:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 20 Mar 2012 21:54:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D3B21CD07E for ; Tue, 20 Mar 2012 21:53:39 +0000 (UTC) Date: Tue, 20 Mar 2012 21:53:39 +0000 (UTC) From: "Lars Hofhansl (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1440408544.38788.1332280419868.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1848277155.35615.1332230020227.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5603) rolling-restart.sh script hangs when attempting to detect expiration of /hbase/master znode. 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-5603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233829#comment-13233829 ] Lars Hofhansl commented on HBASE-5603: -------------------------------------- @Ted: Let's fix the issue at hand in this jira. We can have another jira for the point you mention. > rolling-restart.sh script hangs when attempting to detect expiration of /hbase/master znode. > -------------------------------------------------------------------------------------------- > > Key: HBASE-5603 > URL: https://issues.apache.org/jira/browse/HBASE-5603 > Project: HBase > Issue Type: Bug > Components: zookeeper > Affects Versions: 0.92.0, 0.94.0, 0.96.0 > Reporter: Jonathan Hsieh > Priority: Blocker > > Due to bugfix ZOOKEEPER-1059 (ZK 3.4.0+), the rolling-restart.sh script will hang when attempting to make sure the /hbase/master znode is deleted. > Here's the code > {code} > # make sure the master znode has been deleted before continuing > zparent=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.parent` > if [ "$zparent" == "null" ]; then zparent="/hbase"; fi > zmaster=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.master` > if [ "$zmaster" == "null" ]; then zmaster="master"; fi > zmaster=$zparent/$zmaster > echo -n "Waiting for Master ZNode ${zmaster} to expire" > while bin/hbase zkcli stat $zmaster >/dev/null 2>&1; do > echo -n "." > sleep 1 > done > echo #force a newline > {code} > Prior to ZOOKEEPER-1059, stat on a null znode would NPE and cause zkcli to exit with retcode 1. Afterwards, the null is caught, zkcli will exit with 0 in the case where the znode is present and in the case where it does not exist. -- 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