Skip to content

Commit

Permalink
HBASE-22860 Master's webui returns NPE/HTTP 500 under maintenance mode
Browse files Browse the repository at this point in the history
Signed-off-by: Wellington Chevreuil <[email protected]>
  • Loading branch information
daisukebe authored and wchevreuil committed Aug 16, 2019
1 parent 43603ec commit f9e20a6
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() %>
Expand All @@ -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>
Expand Down

0 comments on commit f9e20a6

Please sign in to comment.