[
https://issues.apache.org/jira/browse/HBASE-8975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Daniel Cryans updated HBASE-8975:
--------------------------------------
Attachment: HBASE-8975-v2.patch
Posting the sending of the 503, but it feels like playing Whac-A-Mole as I saw
different NPE but then I refreshed and never saw it again. I wouldn't want to
have dozens of return points depending on different situations, plus we'd need
to add more later. The web UI is really hacky.
> NPE/HTTP 500 when opening the master's web UI too early
> -------------------------------------------------------
>
> Key: HBASE-8975
> URL: https://issues.apache.org/jira/browse/HBASE-8975
> Project: HBase
> Issue Type: Bug
> Reporter: Jean-Daniel Cryans
> Assignee: Jean-Daniel Cryans
> Fix For: 0.98.0, 0.95.2
>
> Attachments: HBASE-8975.patch, HBASE-8975-v2.patch
>
>
> I'm getting an ugly NPE when trying to open the master's web UI too fast
> after starting it:
> {noformat}
> java.lang.NullPointerException
> at
> org.apache.hadoop.hbase.master.HMaster.getCoprocessors(HMaster.java:2053)
> at
> org.apache.hadoop.hbase.master.HMaster.getClusterStatus(HMaster.java:2003)
> at
> org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmplImpl.renderNoFlush(BackupMasterStatusTmplImpl.java:39)
> at
> org.apache.hadoop.hbase.tmpl.master.BackupMasterStatusTmpl.renderNoFlush(BackupMasterStatusTmpl.java:111)
> at
> org.apache.hadoop.hbase.tmpl.master.MasterStatusTmplImpl.renderNoFlush(MasterStatusTmplImpl.java:237)
> at
> org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.renderNoFlush(MasterStatusTmpl.java:376)
> at
> org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl.render(MasterStatusTmpl.java:366)
> at
> org.apache.hadoop.hbase.master.MasterStatusServlet.doGet(MasterStatusServlet.java:92)
> ...
> {noformat}
> At that point the ServerManager == null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira