hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-14531 graceful_stop.sh "if [ \"$local\" ]" condition unexpected behaviour (Samir Ahmic)
Date Sun, 29 Nov 2015 21:12:06 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 2c32e7c17 -> a7530c48d


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/a7530c48
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a7530c48
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a7530c48

Branch: refs/heads/branch-1.2
Commit: a7530c48d85c6d697f4d19782903ed2e0efa8b66
Parents: 2c32e7c
Author: tedyu <yuzhihong@gmail.com>
Authored: Sun Nov 29 13:12:01 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sun Nov 29 13:12:01 2015 -0800

----------------------------------------------------------------------
 bin/graceful_stop.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a7530c48/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


Mime
View raw message