You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by wc...@apache.org on 2019/08/16 10:53:40 UTC

[hbase] branch branch-2.2 updated: HBASE-22860 Master's webui returns NPE/HTTP 500 under maintenance mode

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

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


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new 27899bf  HBASE-22860 Master's webui returns NPE/HTTP 500 under maintenance mode
27899bf is described below

commit 27899bfd424838a6f03368559fe2ab1234d5640b
Author: Daisuke Kobayashi <po...@gmail.com>
AuthorDate: Thu Aug 15 23:58:53 2019 +0900

    HBASE-22860 Master's webui returns NPE/HTTP 500 under maintenance mode
    
    Signed-off-by: Wellington Chevreuil <wc...@apache.org>
---
 .../hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon      | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
index 41c35c6..01bb3c5 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
@@ -192,8 +192,8 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
         </%if>
         <%if master.isInMaintenanceMode() %>
           <div class="alert alert-warning">
-          Your Master is in maintenance mode. This may be because of HBCK aborting while
-          running in repair mode. Please re-run HBCK in repair mode.
+          Your Master is in maintenance mode. This is because hbase.master.maintenance_mode is
+          set to true. Under the maintenance mode, no quota or no Master coprocessor is loaded.
           </div>
         </%if>
         <%if !master.isBalancerOn() %>
@@ -220,11 +220,13 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
         <%if master.getAssignmentManager() != null %>
           <& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&>
         </%if>
-        <%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %>
-          <section>
-            <h2><a name="rsgroup">RSGroup</a></h2>
-            <& RSGroupListTmpl; master= master; serverManager= serverManager&>
-          </section>
+        <%if !master.isInMaintenanceMode() %>
+          <%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %>
+            <section>
+              <h2><a name="rsgroup">RSGroup</a></h2>
+              <& RSGroupListTmpl; master= master; serverManager= serverManager&>
+            </section>
+          </%if>
         </%if>
         <section>
             <h2><a name="regionservers">Region Servers</a></h2>