[ 
https://issues.apache.org/jira/browse/HDFS-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207518#comment-13207518
 ] 

Eli Collins commented on HDFS-2947:
-----------------------------------

+1 looks good
                
> 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
>         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

        

Reply via email to