[ https://issues.apache.org/jira/browse/HDFS-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882133#action_12882133 ]
Gokul commented on HDFS-1042: ----------------------------- so can we call registerMbean() method just after the FsDirectory initialization in FsNamesystem .initialize() method???? > Namesystem metrics are collected before namesystem is fully initialized > ----------------------------------------------------------------------- > > Key: HDFS-1042 > URL: https://issues.apache.org/jira/browse/HDFS-1042 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.20.2, 0.21.0, 0.22.0 > Reporter: Todd Lipcon > > FSNamesystem leaks its reference out to the metrics system before it has > initialized FSDirectory. Therefore in rare occasions you can get NPEs when > metrics try to collect data from FSN before it's initialized. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.