Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 1709 invoked from network); 20 Jun 2008 12:50:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2008 12:50:11 -0000 Received: (qmail 32473 invoked by uid 500); 20 Jun 2008 12:50:09 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 32434 invoked by uid 500); 20 Jun 2008 12:50:09 -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 32209 invoked by uid 99); 20 Jun 2008 12:50:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 05:50: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, 20 Jun 2008 12:49:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C015234C14B for ; Fri, 20 Jun 2008 05:49:45 -0700 (PDT) Message-ID: <793702696.1213966185375.JavaMail.jira@brutus> Date: Fri, 20 Jun 2008 05:49:45 -0700 (PDT) From: "Hudson (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3576) hadoop dfs -mv throws NullPointerException In-Reply-To: <639656060.1213664985118.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-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606730#action_12606730 ] Hudson commented on HADOOP-3576: -------------------------------- Integrated in Hadoop-trunk #524 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/524/]) > hadoop dfs -mv throws NullPointerException > ------------------------------------------ > > Key: HADOOP-3576 > URL: https://issues.apache.org/jira/browse/HADOOP-3576 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.18.0 > Reporter: Lohit Vijayarenu > Assignee: Tsz Wo (Nicholas), SZE > Priority: Blocker > Fix For: 0.18.0 > > Attachments: 3567_20080618.patch > > > hadoop dfs -mv command throws NullPointerException while moving a directory to its subdirecotry. In 0.17 version, such a move was not allowed. > Consider the example > {noformat} > [lohit@ hadoop-core-trunk]$ ./bin/hadoop dfs -mv /a/b /a/b/c > mv: java.io.IOException: java.lang.NullPointerException > [lohit@ hadoop-core-trunk]$ > {noformat} > After this, the namespace of /a/b is gone > {noformat} > [lohit@ hadoop-core-trunk]$ ./bin/hadoop dfs -lsr /a > [lohit@ hadoop-core-trunk]$ > {noformat} > Restarting the namenode recovers this namespace and everything seems to be normal. > On the other hand, before restarting the namenode, if we delete the directory /a, it succeeds. > {noformat} > [lohit@ hadoop-core-trunk]$ ./bin/hadoop dfs -rmr /a > Deleted hdfs://jamba.juice:8020/a > [lohit@ hadoop-core-trunk]$ > {noformat} > But, restarting now, throws an exception on NameNode and NameNode wouldn't start. > {noformat} > 2008-06-17 00:58:50,422 ERROR org.apache.hadoop.dfs.NameNode: java.lang.NullPointerException > at org.apache.hadoop.dfs.FSNamesystem.changeLease(FSNamesystem.java:4339) > at org.apache.hadoop.dfs.FSEditLog.loadFSEdits(FSEditLog.java:561) > at org.apache.hadoop.dfs.FSImage.loadFSEdits(FSImage.java:846) > at org.apache.hadoop.dfs.FSImage.loadFSImage(FSImage.java:675) > at org.apache.hadoop.dfs.FSImage.recoverTransitionRead(FSImage.java:289) > at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:80) > at org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:273) > at org.apache.hadoop.dfs.FSNamesystem.(FSNamesystem.java:252) > at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:148) > at org.apache.hadoop.dfs.NameNode.(NameNode.java:193) > at org.apache.hadoop.dfs.NameNode.(NameNode.java:179) > at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:825) > at org.apache.hadoop.dfs.NameNode.main(NameNode.java:834) > {noformat} > In hadoop 0.17, we never allowed such a move. > {noformat} > [lohit@ branch-0.17]$ ./bin/hadoop dfs -mv /a/b /a/b/c > mv: Failed to rename /a/b to /a/b/c > [lohit@ branch-0.17]$ > {noformat} > This is the issue seen with HADOOP-3561. Opening this JIRA to fix the underlying problem while HADOOP-3561 could be committed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.