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 108361019B for ; Tue, 5 Nov 2013 07:13:26 +0000 (UTC) Received: (qmail 14527 invoked by uid 500); 5 Nov 2013 07:13:21 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 14500 invoked by uid 500); 5 Nov 2013 07:13:20 -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 14475 invoked by uid 99); 5 Nov 2013 07:13:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 07:13:19 +0000 Date: Tue, 5 Nov 2013 07:13:19 +0000 (UTC) From: "Vinay (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5427) not able to read deleted files from snapshot directly under snapshottable dir after checkpoint and NN restart 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-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813711#comment-13813711 ] Vinay commented on HDFS-5427: ----------------------------- Thanks Jing for the review and commit. Thanks Dongcai Shen for update on sceanario. > not able to read deleted files from snapshot directly under snapshottable dir after checkpoint and NN restart > ------------------------------------------------------------------------------------------------------------- > > Key: HDFS-5427 > URL: https://issues.apache.org/jira/browse/HDFS-5427 > Project: Hadoop HDFS > Issue Type: Bug > Components: snapshots > Affects Versions: 3.0.0, 2.2.0 > Reporter: Vinay > Assignee: Vinay > Priority: Blocker > Fix For: 2.3.0 > > Attachments: HDFS-5427-v2.patch, HDFS-5427.patch, HDFS-5427.patch > > > 1. allow snapshots under dir /foo > 2. create a file /foo/bar > 3. create a snapshot s1 under /foo > 4. delete the file /foo/bar > 5. wait till checkpoint or do saveNameSpace > 6. restart NN. > 7. Now try to read the file from snapshot /foo/.snapshot/s1/bar > client will get BlockMissingException > Reason is > While loading the deleted file list for a snashottable dir from fsimage, blocks were not updated in blocksmap -- This message was sent by Atlassian JIRA (v6.1#6144)