From 50eec790eef2a872739e5507051764148ece9b97 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Wed, 8 Dec 2021 19:49:04 -0500 Subject: [PATCH] HBASE-26550 Make sure the master is running normally before accepting a balance command --- .../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 ad6969ba9abf..1683b16043af 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 boolean skipRegionManagementAction(final String action) { } public BalanceResponse balance(BalanceRequest request) throws IOException { + checkInitialized(); + BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder(); if (loadBalancerTracker == null