bitterfox commented on code in PR #4490:
URL: https://github.com/apache/hbase/pull/4490#discussion_r889870599


##########
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 | tail -2 | head -1)

Review Comment:
   No idea, but empty line is added to the end of output of hbase shell. we 
need to take the 2nd line from the last
   
   ```
   $ echo "balance_switch false" | bin/hbase shell -n | tail -1
   
   $ echo "balance_switch false" | bin/hbase shell -n | tail -2 | head -1
   false
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to