Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF44B185D7 for ; Sun, 29 Nov 2015 21:12:58 +0000 (UTC) Received: (qmail 8146 invoked by uid 500); 29 Nov 2015 21:12:58 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 8106 invoked by uid 500); 29 Nov 2015 21:12:58 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 8097 invoked by uid 99); 29 Nov 2015 21:12:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2015 21:12:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A3256DFDAF; Sun, 29 Nov 2015 21:12:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tedyu@apache.org To: commits@hbase.apache.org Message-Id: <7bfd997756b54854851d65cbaa5295f2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-14531 graceful_stop.sh "if [ \"$local\" ]" condition unexpected behaviour (Samir Ahmic) Date: Sun, 29 Nov 2015 21:12:58 +0000 (UTC) Repository: hbase Updated Branches: refs/heads/branch-1.1 d8127877d -> 169f83a3f HBASE-14531 graceful_stop.sh "if [ \"$local\" ]" condition unexpected behaviour (Samir Ahmic) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/169f83a3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/169f83a3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/169f83a3 Branch: refs/heads/branch-1.1 Commit: 169f83a3fa664ded70a7bd7ee911746b6ad0950f Parents: d812787 Author: tedyu Authored: Sun Nov 29 13:12:55 2015 -0800 Committer: tedyu Committed: Sun Nov 29 13:12:55 2015 -0800 ---------------------------------------------------------------------- bin/graceful_stop.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/169f83a3/bin/graceful_stop.sh ---------------------------------------------------------------------- diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh index 4cef513..43fbf0b 100755 --- a/bin/graceful_stop.sh +++ b/bin/graceful_stop.sh @@ -104,7 +104,7 @@ hosts="/tmp/$(basename $0).$$.tmp" echo $hostname >> $hosts if [ "$thrift" != "" ]; then log "Stopping thrift server on $hostname" - if [ "$local" ]; then + if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop thrift else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop thrift @@ -112,21 +112,21 @@ if [ "$thrift" != "" ]; then fi if [ "$rest" != "" ]; then log "Stopping rest server on $hostname" - if [ "$local" ]; then + if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop rest else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop rest fi fi log "Stopping regionserver on $hostname" -if [ "$local" ]; then +if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop regionserver else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop regionserver fi if [ "$restart" != "" ]; then log "Restarting regionserver on $hostname" - if [ "$local" ]; then + if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start regionserver else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start regionserver @@ -134,7 +134,7 @@ if [ "$restart" != "" ]; then if [ "$thrift" != "" ]; then log "Restarting thrift server on $hostname" # -b 0.0.0.0 says listen on all interfaces rather than just default. - if [ "$local" ]; then + if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start thrift -b 0.0.0.0 else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start thrift -b 0.0.0.0 @@ -142,7 +142,7 @@ if [ "$restart" != "" ]; then fi if [ "$rest" != "" ]; then log "Restarting rest server on $hostname" - if [ "$local" ]; then + if [ "$local" == true ]; then "$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start rest else "$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start rest