Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • namenode
    • None
    • Reviewed

    Description

      Currently we have relatively complicated logic in INodesInPath:
      1) It can contain null elements in its INode array, and in mkdirRecursively these null INodes are replaced with new directories.
      2) Operations like rename may also replace the inode in its INode array
      3) getINodes requires trimming inodes array if the INodesInPath is derived from a dot-snapshot path
      4) A lot of methods directly use/manipulate its INode array

      We aim to simplify the logic of INodesInPath in this jira. Specifically, we can
      make INodesInPath an immutable data structure and move the inode trimming logic to path resolving.

      Attachments

        1. HDFS-7498.000.patch
          71 kB
          Jing Zhao

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: