Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 12773 invoked from network); 29 Mar 2007 23:55:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 23:55:47 -0000 Received: (qmail 42027 invoked by uid 500); 29 Mar 2007 23:55:53 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 42001 invoked by uid 500); 29 Mar 2007 23:55:53 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 41992 invoked by uid 99); 29 Mar 2007 23:55:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 16:55:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 16:55:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 40068714065 for ; Thu, 29 Mar 2007 16:55:25 -0700 (PDT) Message-ID: <9050633.1175212525259.JavaMail.jira@brutus> Date: Thu, 29 Mar 2007 16:55:25 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1178) NullPointer Exception in org.apache.hadoop.dfs.NameNode.isDir on namenode restart In-Reply-To: <10124039.1175117965461.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-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dhruba borthakur updated HADOOP-1178: ------------------------------------- Status: Patch Available (was: Open) > NullPointer Exception in org.apache.hadoop.dfs.NameNode.isDir on namenode restart > --------------------------------------------------------------------------------- > > Key: HADOOP-1178 > URL: https://issues.apache.org/jira/browse/HADOOP-1178 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.13.0 > Reporter: dhruba borthakur > Assigned To: dhruba borthakur > Fix For: 0.13.0 > > Attachments: namenodestart2.patch > > > On a namenode restart, I sometimes get the following exception. The problem is that the RPC server is initialized before the namenode data structures are initialized. This means that an RPC starts getting processed by the namenode before its data structures are consistent. The fix is to first initialize the namesystem and then start the RPC server. > NFO org.apache.hadoop.ipc.Server: IPC Server handler 1 on 50000 call error: java.io.IOException: java.lang.NullPointerException > java.io.IOException: java.lang.NullPointerException > at org.apache.hadoop.dfs.NameNode.isDir(NameNode.java:438) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:339) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:564) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.