[
https://issues.apache.org/jira/browse/HDFS-4167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-4167:
----------------------------
Attachment: HDFS-4167.003.patch
After more thinking, since we actually retain the snapshot for restoring (i.e.,
after rollback to snapshot s1, we still keep s1 instead of delete it), we can
keep the current file length and the length recorded in snapshot unchanged. In
that case, we do not need to truncate data for a file that has been appended
after the snapshot.
Update the patch to reflect the change.
> Add support for restoring/rolling back to a snapshot
> ----------------------------------------------------
>
> Key: HDFS-4167
> URL: https://issues.apache.org/jira/browse/HDFS-4167
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Suresh Srinivas
> Assignee: Jing Zhao
> Attachments: HDFS-4167.000.patch, HDFS-4167.001.patch,
> HDFS-4167.002.patch, HDFS-4167.003.patch
>
>
> This jira tracks work related to restoring a directory/file to a snapshot.
--
This message was sent by Atlassian JIRA
(v6.2#6252)