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

Byron Wong commented on HDFS-7056:
----------------------------------

I've been doing some extensive testing on the patches, many of which have 
already been mentioned by [~shv].
Here are a couple of test cases I've tried:
1) Deleting snapshots directly after multiple truncates.
2) Deleting snapshots directly after an append that happened after multiple 
truncates.
3) Verifying that the result of computeContentSummary is as expected after 
truncating and renaming (i.e. create snapshot, rename, truncate, 
computeContentSummary).
4) Verify that the correct blocks are being preserved and the correct ones are 
being deleted after deleting a file that has been truncated, appended, and 
snapshotted.

Everything works as expected as of the latest patches, so +1. Good work, guys.

> 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-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
(v6.3.4#6332)

Reply via email to