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 GitHub
parent 96c971f18b
commit 13f3b17870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1844,6 +1844,8 @@ public class HMaster extends HBaseServerBase<MasterRpcServices> implements Maste
}
public BalanceResponse balance(BalanceRequest request) throws IOException {
checkInitialized();
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
if (loadBalancerTracker == null