[
https://issues.apache.org/jira/browse/HADOOP-12160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masatake Iwasaki updated HADOOP-12160:
--------------------------------------
Attachment: HADOOP-12177.001.patch
I attached 001.
I fixed specification and added tests for Snapshot API assuming it does not
have many contract in the context of {{FileSystem}}. The contract consists of
* Snapshot has name associated with each Path
* Snapshot has Path representing the snapshot
** {{createSnapshot}} returns the path.
** FileSystem operations can use the path to access files in the snapshot.
I did not explain about below assuming it is specific to HDFS implementation.
* Administrator need to enable snapshot on each directory by
{{DistributedFileSystem#allowSnapshot}}
* Snapshot is created on directory
> Add snapshot APIs to the FileSystem specification
> -------------------------------------------------
>
> Key: HADOOP-12160
> URL: https://issues.apache.org/jira/browse/HADOOP-12160
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: documentation
> Affects Versions: 2.7.1
> Reporter: Arpit Agarwal
> Assignee: Masatake Iwasaki
> Attachments: HADOOP-12177.001.patch
>
>
> The following snapshot APIs should be documented in the [FileSystem
> specification|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/filesystem/filesystem.html].
> # createSnapshot(Path path)
> # createSnapshot(Path path, String snapshotName)
> # renameSnapshot(Path path, String snapshotOldName, String snapshotNewName)
> # deleteSnapshot(Path path, String snapshotName)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)