Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 43368 invoked from network); 17 Mar 2010 22:57:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 22:57:48 -0000 Received: (qmail 46359 invoked by uid 500); 17 Mar 2010 22:57:48 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 46324 invoked by uid 500); 17 Mar 2010 22:57:48 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 46315 invoked by uid 99); 17 Mar 2010 22:57:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 22:57:48 +0000 X-ASF-Spam-Status: No, hits=-1048.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 22:57:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 390A6234C4AF for ; Wed, 17 Mar 2010 22:57:27 +0000 (UTC) Message-ID: <754096709.327491268866647232.JavaMail.jira@brutus.apache.org> Date: Wed, 17 Mar 2010 22:57:27 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1042) Namesystem metrics are collected before namesystem is fully initialized In-Reply-To: <1067588851.327471268866647220.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846648#action_12846648 ] Todd Lipcon commented on HDFS-1042: ----------------------------------- Sample stack trace from a CDH 0.20.2: {noformat} java.lang.NullPointerException at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFilesTotal(FSNamesystem.java:4621) at org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMetrics.doUpdates(FSNamesystemMetrics.java:100) at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:293) at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:53) at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:258) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) {noformat} > 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.