This is an automated email from the ASF dual-hosted git repository. zhangduo pushed a commit to branch branch-2.4 in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 027165e25277d4dde4a6a035ab29fc980213ed37 Author: LiangJun He <[email protected]> AuthorDate: Tue Aug 9 09:48:51 2022 +0800 HBASE-27275 graceful_stop.sh unable to restore the balance state (#4680) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit b431652e48e7cd003c7f8cad4eb9e3065cb0b40f) --- bin/graceful_stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh index fc18239830b..da3495b1d7b 100755 --- a/bin/graceful_stop.sh +++ b/bin/graceful_stop.sh @@ -115,7 +115,7 @@ if [ "$nob" == "true" ]; then HBASE_BALANCER_STATE=false else log "Disabling load balancer" - HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | tail -1) + HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | grep 'Previous balancer state' | awk -F": " '{print $2}') log "Previous balancer state was $HBASE_BALANCER_STATE" fi
