From 13f3b178707774f1991f7d8ee7bfe67c8b59b711 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 ad6969ba9ab..1683b16043a 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 @@ -1844,6 +1844,8 @@ public class HMaster extends HBaseServerBase implements Maste } public BalanceResponse balance(BalanceRequest request) throws IOException { + checkInitialized(); + BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder(); if (loadBalancerTracker == null