This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 3e806a7  Revert "HBOPS-25594 Make easier to use graceful_stop on 
localhost mode (#3054)"
3e806a7 is described below

commit 3e806a7dcd362e8e0e9195072c7c6685aa3b5638
Author: stack <st...@apache.org>
AuthorDate: Thu Mar 18 12:09:16 2021 -0700

    Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode 
(#3054)"
    
    This reverts commit 728d4f5ab12fd2631b1ef0a7c61203e9acfb05f0.
    
    Reverted because it an addendum and main patch did not land on this
    branch so removing.
---
 bin/graceful_stop.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh
index e565929..89e3dd9 100755
--- a/bin/graceful_stop.sh
+++ b/bin/graceful_stop.sh
@@ -32,7 +32,7 @@ moving regions"
   echo " maxthreads xx  Limit the number of threads used by the region mover. 
Default value is 1."
   echo " movetimeout xx Timeout for moving regions. If regions are not moved 
by the timeout value,\
 exit with error. Default value is INT_MAX."
-  echo " hostname       Hostname to stop; match what HBase uses; pass 
'localhost' if local to avoid ssh"
+  echo " hostname       Hostname of server we are to stop"
   echo " e|failfast     Set -e so exit immediately if any command exits with 
non-zero status"
   echo " nob| nobalancer Do not manage balancer states. This is only used as 
optimization in \
 rolling_restart.sh to avoid multiple calls to hbase shell"
@@ -100,10 +100,6 @@ localhostname=`/bin/hostname`
 if [ "$localhostname" == "$hostname" ]; then
   local=true
 fi
-if [ "$localhostname" == "$hostname" ] || [ "$hostname" == "localhost" ]; then
-  local=true
-  hostname=$localhostname
-fi
 
 if [ "$nob" == "true"  ]; then
   log "[ $0 ] skipping disabling balancer -nob argument is used"

Reply via email to