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

Tsz Wo (Nicholas), SZE commented on HDFS-4111:
----------------------------------------------

Just have finished some code to verify this.
- Original tree
{noformat}
    (INodeDirectoryWithQuota)
\- TestSnapshot   (INodeDirectory)
  \- sub1   (INodeDirectorySnapshottable)
    +- file1   (INodeFile)
    +- file2   (INodeFile)
    +- sub11   (INodeDirectory)
      \- file3   (INodeFile)
    \- z_file4   (INodeFile)
    0 snapshot of sub1
{noformat}
- Take a snapshot of /TestSnapshot/sub1
{noformat}
    (INodeDirectoryWithQuota)
\- TestSnapshot   (INodeDirectory)
  \- sub1   (INodeDirectorySnapshottable)
    +- file1   (INodeFileWithLink)
    +- file2   (INodeFileWithLink)
    +- sub11   (INodeDirectory)
      \- file3   (INodeFileWithLink)
    \- z_file4   (INodeFileWithLink)
    1 snapshot of sub1
    \- s1   (INodeDirectorySnapshotRoot)
      +- file1   (INodeFileSnapshot)
      +- file2   (INodeFileSnapshot)
      +- sub11   (INodeDirectory)
        \- file3   (INodeFileSnapshot)
      \- z_file4   (INodeFileSnapshot)
{noformat}
- Create a new file /TestSnapshot/sub1/z_file5
{noformat}
    (INodeDirectoryWithQuota)
\- TestSnapshot   (INodeDirectory)
  \- sub1   (INodeDirectorySnapshottable)
    +- file1   (INodeFileWithLink)
    +- file2   (INodeFileWithLink)
    +- sub11   (INodeDirectory)
      \- file3   (INodeFileWithLink)
       z_file4   (INodeFileWithLink)
    \- z_file5   (INodeFile)
    1 snapshot of sub1
    \- s1   (INodeDirectorySnapshotRoot)
      +- file1   (INodeFileSnapshot)
      +- file2   (INodeFileSnapshot)
      +- sub11   (INodeDirectory)
        \- file3   (INodeFileSnapshot)
      \- z_file4   (INodeFileSnapshot)
{noformat}
- Take another snapshot of /TestSnapshot/sub1
{noformat}
    (INodeDirectoryWithQuota)
\- TestSnapshot   (INodeDirectory)
  \- sub1   (INodeDirectorySnapshottable)
    +- file1   (INodeFileWithLink)
    +- file2   (INodeFileWithLink)
    +- sub11   (INodeDirectory)
      \- file3   (INodeFileWithLink)
       z_file4   (INodeFileWithLink)
    \- z_file5   (INodeFileWithLink)
    2 snapshots of sub1
    +- s1   (INodeDirectorySnapshotRoot)
      +- file1   (INodeFileSnapshot)
      +- file2   (INodeFileSnapshot)
      +- sub11   (INodeDirectory)
        \- file3   (INodeFileSnapshot)
      \- z_file4   (INodeFileSnapshot)
    \- s2   (INodeDirectorySnapshotRoot)
      +- file1   (INodeFileSnapshot)
      +- file2   (INodeFileSnapshot)
      +- sub11   (INodeDirectory)
        \- file3   (INodeFileSnapshot)
         z_file4   (INodeFileSnapshot)
      \- z_file5   (INodeFileSnapshot)
{noformat}

                
> Support snapshot of subtrees
> ----------------------------
>
>                 Key: HDFS-4111
>                 URL: https://issues.apache.org/jira/browse/HDFS-4111
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>              Labels: needs-test
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: h4111_20121025.patch, h4111_20121026.patch
>
>
> HDFS-4076 add the ability to take snapshot of single files.  In this JIRA, we 
> add the ability to take snapshot of subtree trees in the namesystem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to