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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: