Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4806

For an INodeDirectoryWithSnapshot, use INode#isInLatestSnapshot() to check if the added/removed child should be recorded in snapshot diff

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • Reviewed

    Description

      Before supporting rename with snapshots, when adding/remove a child inode to/from a directory, if the directory is already an INodeDirectoryWithSnapshot, we can directly record the change in the corresponding snapshot diff.

      After support rename with snapshots, an INodeDirectoryWithSnapshot may be a renamed node, thus we should use INode#isInLatestSnapshot() to check if we should record the change in snapshots.

      Attachments

        1. HDFS-4806.001.patch
          5 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: