Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 46389 invoked from network); 10 Jun 2008 02:12:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 02:12:06 -0000 Received: (qmail 79472 invoked by uid 500); 10 Jun 2008 02:12:08 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 79461 invoked by uid 500); 10 Jun 2008 02:12: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 79450 invoked by uid 99); 10 Jun 2008 02:12:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 19:12: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; Tue, 10 Jun 2008 02:11:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F411C234C135 for ; Mon, 9 Jun 2008 19:11:44 -0700 (PDT) Message-ID: <103090953.1213063904985.JavaMail.jira@brutus> Date: Mon, 9 Jun 2008 19:11:44 -0700 (PDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3418) NameNode does not restart if parent directory of a "FileUnderConstruction" is deleted. In-Reply-To: <640897757.1211252815635.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-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-3418: ------------------------------------------- Attachment: 3418_20080609b.patch 3418_20080609b.patch: remove lease during delete instead of checking existence before writing to image. > NameNode does not restart if parent directory of a "FileUnderConstruction" is deleted. > -------------------------------------------------------------------------------------- > > Key: HADOOP-3418 > URL: https://issues.apache.org/jira/browse/HADOOP-3418 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Reporter: Raghu Angadi > Assignee: Konstantin Shvachko > Priority: Blocker > Fix For: 0.18.0 > > Attachments: 3418_20080609.patch, 3418_20080609b.patch > > > How to reproduce : > {{$ bin/hadoop fs -put largeFile tmp/tmpFile}} > ...before this finishes > {{$ bin/hadoop fs -rmr tmp}} > Now restart NameNode. > Restart fails with : > {noformat} > 2008-05-20 02:21:34,731 ERROR org.apache.hadoop.dfs.NameNode: java.io.IOException: saveLeases found path /user/rangadi/tmp/tmpFile but no matching entry in namespace. > at org.apache.hadoop.dfs.FSNamesystem.saveFilesUnderConstruction(FSNamesystem.java:4215) > at org.apache.hadoop.dfs.FSImage.saveFSImage(FSImage.java:848) > at org.apache.hadoop.dfs.FSImage.saveFSImage(FSImage.java:866) > at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:82) > at org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:273) > at org.apache.hadoop.dfs.FSNamesystem.(FSNamesystem.java:253) > 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) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.