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 44f30089b9
commit 2bfb743d79

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