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
79b2a4d06a
commit
cb3155459f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue