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:
parent
96c971f18b
commit
13f3b17870
|
@ -1844,6 +1844,8 @@ public class HMaster extends HBaseServerBase<MasterRpcServices> implements Maste
|
||||||
}
|
}
|
||||||
|
|
||||||
public BalanceResponse balance(BalanceRequest request) throws IOException {
|
public BalanceResponse balance(BalanceRequest request) throws IOException {
|
||||||
|
checkInitialized();
|
||||||
|
|
||||||
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
|
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
|
||||||
|
|
||||||
if (loadBalancerTracker == null
|
if (loadBalancerTracker == null
|
||||||
|
|
Loading…
Reference in New Issue