hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7056) Snapshot support for truncate
Date Fri, 12 Dec 2014 09:56:13 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Konstantin Shvachko updated HDFS-7056:
    Attachment: HDFS-7056.patch

Updating patch to current trunk.
[~Byron Wong] was testing extensively snapshots with truncate during last few week. He found
too corner cases:
# file size was not computed in ContentSummary for a file that has snapshots and is not deleted
# Disk space computation was incorrect when snapshots are deleted in a certain sequence after
mutliple truncates.

Both are fixed in the latest patch, and we added a series of test cases to capture this.

Its been a while. Jing and Colin had good comments, which have been addressed by now.
Could you guys please review so that we could finally commit this. It really takes cycles
to keep up with evolving trunk.

> Snapshot support for truncate
> -----------------------------
>                 Key: HDFS-7056
>                 URL: https://issues.apache.org/jira/browse/HDFS-7056
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>    Affects Versions: 3.0.0
>            Reporter: Konstantin Shvachko
>            Assignee: Plamen Jeliazkov
>         Attachments: HDFS-3107-HDFS-7056-combined.patch, HDFS-3107-HDFS-7056-combined.patch,
HDFS-3107-HDFS-7056-combined.patch, HDFS-3107-HDFS-7056-combined.patch, HDFS-3107-HDFS-7056-combined.patch,
HDFS-7056.patch, HDFS-7056.patch, HDFS-7056.patch, HDFS-7056.patch, HDFS-7056.patch, HDFS-7056.patch,
HDFS-7056.patch, HDFSSnapshotWithTruncateDesign.docx
> Implementation of truncate in HDFS-3107 does not allow truncating files which are in
a snapshot. It is desirable to be able to truncate and still keep the old file state of the
file in the snapshot.

This message was sent by Atlassian JIRA

View raw message