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

INodeDirectory#replaceSelf4Quota may convert a newly created directory (which is not included in the latest snapshot) to an INodeDirectoryWithSnapshot

    XMLWordPrintableJSON

Details

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

    Description

      In INodeDirectory#replaceSelf4Quota, we convert the target node to INodeDirectoryWithSnapshot when the latest snapshot is not null. This may convert a directory, which was created after taking the latest snapshot, to an INodeDirectoryWithSnapshot. We thus should use INode#isInLatestSnapshot for checking here.

      Attachments

        1. HDFS-4637.002.patch
          6 kB
          Jing Zhao
        2. HDFS-4637.001.patch
          5 kB
          Jing Zhao

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: