HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Josh Elser 2021-12-14 10:17:34 -05:00 committed by Duo Zhang
parent 79b2a4d06a
commit cb3155459f
1 changed files with 2 additions and 0 deletions

View File

@ -1827,6 +1827,8 @@ public class HMaster extends HRegionServer implements MasterServices {
}
public BalanceResponse balance(BalanceRequest request) throws IOException {
checkInitialized();
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
if (loadBalancerTracker == null