Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC83C9130 for ; Tue, 10 Jul 2012 18:56:35 +0000 (UTC) Received: (qmail 14739 invoked by uid 500); 10 Jul 2012 18:56:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 14700 invoked by uid 500); 10 Jul 2012 18:56:35 -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 14692 invoked by uid 99); 10 Jul 2012 18:56:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 18:56:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2E7D0142856 for ; Tue, 10 Jul 2012 18:56:35 +0000 (UTC) Date: Tue, 10 Jul 2012 18:56:35 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1979949061.30295.1341946595192.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2056802983.65862.1327311398562.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2827) Cannot save namespace after renaming a directory above a file with an open lease 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-2827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eli Collins updated HDFS-2827: ------------------------------ Target Version/s: (was: 0.24.0) Fix Version/s: 1.2.0 Thanks for the review ATM, I've committed this to branch-1. > Cannot save namespace after renaming a directory above a file with an open lease > -------------------------------------------------------------------------------- > > Key: HDFS-2827 > URL: https://issues.apache.org/jira/browse/HDFS-2827 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.24.0 > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Fix For: 0.24.0, 0.23.1, 1.2.0 > > Attachments: HDFS-2827-test.patch, HDFS-2827.patch, hdfs-2827-b1.txt > > > When i execute the following operations and wait for checkpoint to complete. > fs.mkdirs(new Path("/test1")); > FSDataOutputStream create = fs.create(new Path("/test/abc.txt")); //dont close > fs.rename(new Path("/test/"), new Path("/test1/")); > Check-pointing is failing with the following exception. > 2012-01-23 15:03:14,204 ERROR namenode.FSImage (FSImage.java:run(795)) - Unable to save image for E:\HDFS-1623\hadoop-hdfs-project\hadoop-hdfs\build\test\data\dfs\name3 > java.io.IOException: saveLeases found path /test1/est/abc.txt but no matching entry in namespace.[/test1/est/abc.txt] > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.saveFilesUnderConstruction(FSNamesystem.java:4336) > at org.apache.hadoop.hdfs.server.namenode.FSImageFormat$Saver.save(FSImageFormat.java:588) > at org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImage(FSImage.java:761) > at org.apache.hadoop.hdfs.server.namenode.FSImage$FSImageSaver.run(FSImage.java:789) > at java.lang.Thread.run(Unknown Source) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira