Skip to content

Commit 13f3b17

Browse files
authored
HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent 96c971f commit 13f3b17

File tree

1 file changed

+2
-0
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/master

1 file changed

+2
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,8 @@ public boolean skipRegionManagementAction(final String action) {
18441844
}
18451845

18461846
public BalanceResponse balance(BalanceRequest request) throws IOException {
1847+
checkInitialized();
1848+
18471849
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
18481850

18491851
if (loadBalancerTracker == null

0 commit comments

Comments
 (0)