HBASE-8975 NPE/HTTP 500 when opening the master's web UI too early
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1504955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
581c3f2634
commit
a97739bd3f
|
@ -63,7 +63,11 @@ public class MasterStatusServlet extends HttpServlet {
|
|||
List<ServerName> servers = null;
|
||||
Set<ServerName> deadServers = null;
|
||||
|
||||
if(master.isActiveMaster()){
|
||||
if(master.isActiveMaster()) {
|
||||
if (master.getServerManager() == null) {
|
||||
response.sendError(503, "Master not ready");
|
||||
return;
|
||||
}
|
||||
metaLocation = getMetaLocationOrNull(master);
|
||||
//ServerName metaLocation = master.getCatalogTracker().getMetaLocation();
|
||||
servers = master.getServerManager().getOnlineServersList();
|
||||
|
|
Loading…
Reference in New Issue