hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-2947) HA: On startup NN throws an NPE in the metrics system
Date Tue, 14 Feb 2012 01:07:01 GMT

     [ https://issues.apache.org/jira/browse/HDFS-2947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aaron T. Myers updated HDFS-2947:
---------------------------------

    Attachment: HDFS-2947-HDFS-1623.patch

Here's a patch which addresses the issue. I manually verified that the NN no longer prints
this NPE during startup. I also ran TestHAStateTransitions to make sure everything still works
fine.
                
> 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

        

Mime
View raw message