You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2021/03/19 11:36:08 UTC

[hbase] branch branch-2.4 updated (df6e5dd -> 3c815be)

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

psomogyi pushed a change to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git.


    from df6e5dd  HBASE-25518 Support separate child regions to different region servers (#3001)
     new fd73b12  Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode (#3054)"
     new 3c815be  HBASE-25594 Make easier to use graceful_stop on localhost mode (#3054)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:

[hbase] 02/02: HBASE-25594 Make easier to use graceful_stop on localhost mode (#3054)

Posted by ps...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3c815bef4100e9323e4c4596064876ef6ce77324
Author: Javier Akira Luca de Tena <ak...@gmail.com>
AuthorDate: Fri Mar 19 04:04:54 2021 +0900

    HBASE-25594 Make easier to use graceful_stop on localhost mode (#3054)
    
    Co-authored-by: Javier <ja...@linecorp.com>
---
 bin/graceful_stop.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh
index 8944653..05919ce 100755
--- a/bin/graceful_stop.sh
+++ b/bin/graceful_stop.sh
@@ -33,7 +33,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 of server we are to stop"
+  echo " hostname       Hostname to stop; match what HBase uses; pass 'localhost' if local to avoid ssh"
   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"
@@ -108,6 +108,10 @@ localhostname=`/bin/hostname -f`
 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"

[hbase] 01/02: Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode (#3054)"

Posted by ps...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fd73b125d37d31d22e0900fa2ceab28ad728c1fc
Author: Peter Somogyi <ps...@apache.org>
AuthorDate: Fri Mar 19 12:33:02 2021 +0100

    Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode (#3054)"
    
    This reverts commit 90a58feacc0b452a64b74db8995058f89117f69c.
---
 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 05919ce..8944653 100755
--- a/bin/graceful_stop.sh
+++ b/bin/graceful_stop.sh
@@ -33,7 +33,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"
@@ -108,10 +108,6 @@ localhostname=`/bin/hostname -f`
 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"