Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 92155 invoked from network); 6 Jun 2008 22:13:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 22:13:06 -0000 Received: (qmail 44909 invoked by uid 500); 6 Jun 2008 22:13:08 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 44879 invoked by uid 500); 6 Jun 2008 22:13:08 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 44868 invoked by uid 99); 6 Jun 2008 22:13:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 15:13:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 06 Jun 2008 22:12:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F7B0234C134 for ; Fri, 6 Jun 2008 15:12:45 -0700 (PDT) Message-ID: <849644894.1212790365062.JavaMail.jira@brutus> Date: Fri, 6 Jun 2008 15:12:45 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3489) NPE in SafeModeMonitor In-Reply-To: <2010956777.1212618824985.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603198#action_12603198 ] Konstantin Shvachko commented on HADOOP-3489: --------------------------------------------- +1 > NPE in SafeModeMonitor > ---------------------- > > Key: HADOOP-3489 > URL: https://issues.apache.org/jira/browse/HADOOP-3489 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.18.0 > Reporter: Konstantin Shvachko > Fix For: 0.18.0 > > Attachments: HADOOP-3489-1.patch > > > If dfsadmin issues -safemode leave command when name-node is in the extended period of safe mode the SafeModeMonitor throws the following exception: > {code} > Exception in thread "org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor@dc86eb" java.lang.NullPointerException > at org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor.run(FSNamesystem.java:3914) > at java.lang.Thread.run(Thread.java:619) > {code} > The problem is that when SafeModeMonitor.run() wakes up it tries to check whether it canLeave() the safe mode, but the safe mode is off already, > and therefore the "safemode" field is null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.