You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/12/14 15:35:12 UTC

[hbase] branch branch-2 updated: HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new cb31554  HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928)
cb31554 is described below

commit cb3155459f1f3a5a4ee8a5f1dd2297ab74a5aa47
Author: Josh Elser <el...@apache.org>
AuthorDate: Tue Dec 14 10:17:34 2021 -0500

    HBASE-26550 Make sure the master is running normally before accepting a balance command (#3928)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
---
 hbase-server/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 6cec15c..e205c8d 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 class HMaster extends HRegionServer implements MasterServices {
   }
 
   public BalanceResponse balance(BalanceRequest request) throws IOException {
+    checkInitialized();
+
     BalanceResponse.Builder responseBuilder = BalanceResponse.newBuilder();
 
     if (loadBalancerTracker == null