[ https://issues.apache.org/jira/browse/HDFS-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aaron T. Myers resolved HDFS-2947. ---------------------------------- Resolution: Fixed Fix Version/s: HA branch (HDFS-1623) Hadoop Flags: Reviewed Thanks a lot for the review, Eli. I've just committed this to the HA branch. > HA: On startup NN throws an NPE in the metrics system > ----------------------------------------------------- > > Key: HDFS-2947 > URL: https://issues.apache.org/jira/browse/HDFS-2947 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ha, name-node > Affects Versions: HA branch (HDFS-1623) > Reporter: Aaron T. Myers > Assignee: Aaron T. Myers > Priority: Minor > Fix For: HA branch (HDFS-1623) > > Attachments: HDFS-2947-HDFS-1623.patch > > > HDFS-2510 added some HA-specific metrics which check the NN's HAState. The NN > initializes its HAState *after* the metrics are initialized, and thus we > might hit an NPE during NN startup. This seems to be innocuous in that the > NN's metrics still function, but it's poor form to log an unnecessary NPE. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira