You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2013/07/18 01:52:49 UTC

[jira] [Updated] (HBASE-8975) NPE/HTTP 500 when opening the master's web UI too early

     [ 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.patch

I've looked around HMaster and there isn't really anything that tells us that we're passed initializeZKBasedSystemTrackers(), which seems to be the point where we can start showing up the page.

So in the patch I'm attaching I'm checking if the SM is null, in which case I just return. This shows a blank page instead of 500 and a fat stack trace.
                
> 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
>
>
> 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