From 2bfb743d79efd07a2406c826465acc20f0455e43 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Tue, 14 Dec 2021 10:17:34 -0500 Subject: [PATCH] HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928) Signed-off-by: Duo Zhang --- .../src/main/java/org/apache/hadoop/hbase/master/HMaster.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 6cec15cc7028..e205c8dbbbcd 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -1827,6 +1827,8 @@ public boolean skipRegionManagementAction(final String action) { } public BalanceResponse balance(BalanceRequest request) throws IOException { + checkInitialized(); + BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder(); if (loadBalancerTracker == null