HBASE-22860 Master's webui returns NPE/HTTP 500 under maintenance mode

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
This commit is contained in:
Daisuke Kobayashi 2019-08-15 23:58:53 +09:00 committed by Wellington Chevreuil
parent 94af65163b
commit 3eb602c7f7
1 changed files with 9 additions and 7 deletions

View File

@ -192,8 +192,8 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</%if> </%if>
<%if master.isInMaintenanceMode() %> <%if master.isInMaintenanceMode() %>
<div class="alert alert-warning"> <div class="alert alert-warning">
Your Master is in maintenance mode. This may be because of HBCK aborting while Your Master is in maintenance mode. This is because hbase.master.maintenance_mode is
running in repair mode. Please re-run HBCK in repair mode. set to true. Under the maintenance mode, no quota or no Master coprocessor is loaded.
</div> </div>
</%if> </%if>
<%if !master.isBalancerOn() %> <%if !master.isBalancerOn() %>
@ -220,12 +220,14 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
<%if master.getAssignmentManager() != null %> <%if master.getAssignmentManager() != null %>
<& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&> <& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&>
</%if> </%if>
<%if !master.isInMaintenanceMode() %>
<%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %> <%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %>
<section> <section>
<h2><a name="rsgroup">RSGroup</a></h2> <h2><a name="rsgroup">RSGroup</a></h2>
<& RSGroupListTmpl; master= master; serverManager= serverManager&> <& RSGroupListTmpl; master= master; serverManager= serverManager&>
</section> </section>
</%if> </%if>
</%if>
<section> <section>
<h2><a name="regionservers">Region Servers</a></h2> <h2><a name="regionservers">Region Servers</a></h2>
<& RegionServerListTmpl; master= master; servers = servers &> <& RegionServerListTmpl; master= master; servers = servers &>