hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5982) Need to update snapshot manager when applying editlog for deleting a snapshottable directory
Date Thu, 20 Feb 2014 23:49:22 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907724#comment-13907724
] 

Jing Zhao commented on HDFS-5982:
---------------------------------

The failed test should be unrelated. I will commit the patch shortly.

> Need to update snapshot manager when applying editlog for deleting a snapshottable directory
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5982
>                 URL: https://issues.apache.org/jira/browse/HDFS-5982
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.3.0
>            Reporter: Tassapol Athiapinya
>            Assignee: Jing Zhao
>            Priority: Critical
>         Attachments: HDFS-5982.000.patch, HDFS-5982.001.patch, HDFS-5982.001.patch
>
>
> Currently after deleting a snapshottable directory which does not have snapshots any
more, we also remove the directory from the snapshottable directory list in SnapshotManager.
This works fine when handling a delete request from user. However, when we apply the OP_DELETE
editlog, FSDirectory#unprotectedDelete(String, long) is called, which does not contain the
"updating snapshot manager" process. This may leave an non-existent inode id in the snapshottable
directory list, and can even lead to FSImage corruption.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message