[
https://issues.apache.org/jira/browse/HDFS-4167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001360#comment-14001360
]
Tsz Wo Nicholas Sze commented on HDFS-4167:
-------------------------------------------
> ... If the directory /foo/bar was deleted after snapshot s1, and then a user
> wants to restore /foo/.snapshot/s1/bar/file, it is hard to determine where we
> should put the file. ...
The file should be restored to the original location, i.e. its location before
taking snapshot s1.
> ... Also the filesystem API must be defined as you suggested in the jira.
> However, the relative path may seem confusing since users usually use
> relative path against the working directory of the file system.
Then we may use the snapshot path as the parameter e.g.
fs.restoreSnapshot(/foo/.snapshot/s0/bar).
> 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, HDFS-4167.004.patch
>
>
> This jira tracks work related to restoring a directory/file to a snapshot.
--
This message was sent by Atlassian JIRA
(v6.2#6252)