Skip to content

Commit 2bfb743

Browse files
joshelserApache9
authored andcommitted
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 44f3008 commit 2bfb743

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
@@ -1827,6 +1827,8 @@ public boolean skipRegionManagementAction(final String action) {
18271827
}
18281828

18291829
public BalanceResponse balance(BalanceRequest request) throws IOException {
1830+
checkInitialized();
1831+
18301832
BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
18311833

18321834
if (loadBalancerTracker == null

0 commit comments

Comments
 (0)