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:
parent
94af65163b
commit
3eb602c7f7
|
@ -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,11 +220,13 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
<%if master.getAssignmentManager() != null %>
|
<%if master.getAssignmentManager() != null %>
|
||||||
<& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&>
|
<& AssignmentManagerStatusTmpl; assignmentManager=master.getAssignmentManager()&>
|
||||||
</%if>
|
</%if>
|
||||||
<%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %>
|
<%if !master.isInMaintenanceMode() %>
|
||||||
<section>
|
<%if master.getMasterCoprocessorHost().findCoprocessor("RSGroupAdminEndpoint") != null %>
|
||||||
<h2><a name="rsgroup">RSGroup</a></h2>
|
<section>
|
||||||
<& RSGroupListTmpl; master= master; serverManager= serverManager&>
|
<h2><a name="rsgroup">RSGroup</a></h2>
|
||||||
</section>
|
<& RSGroupListTmpl; master= master; serverManager= serverManager&>
|
||||||
|
</section>
|
||||||
|
</%if>
|
||||||
</%if>
|
</%if>
|
||||||
<section>
|
<section>
|
||||||
<h2><a name="regionservers">Region Servers</a></h2>
|
<h2><a name="regionservers">Region Servers</a></h2>
|
||||||
|
|
Loading…
Reference in New Issue