You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Aaron T. Myers (Created) (JIRA)" <ji...@apache.org> on 2012/02/14 01:54:59 UTC

[jira] [Created] (HDFS-2947) HA: On startup NN throws an NPE in the metrics system

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


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

        

[jira] [Resolved] (HDFS-2947) HA: On startup NN throws an NPE in the metrics system

Posted by "Aaron T. Myers (Resolved) (JIRA)" <ji...@apache.org>.
     [ 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