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 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>