Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4489 Use InodeID as as an identifier of a file in HDFS protocols and APIs
  3. HDFS-4694

The SecondaryNameNode may change the inode id of root while doing checkpoint

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.0-alpha1
    • None
    • namenode
    • None

    Description

      SNN will call FSNamesystem#clear while merging the fsimage to its local FSNamesystem, and the FSDirectory will be reset in this process. However, in FSDirectory#reset, a new inode id will be allocated and assigned to the new root.

      To fix the problem, we can either pass in an inode id in FSDirectory#createRoot, or update the root id in FSImageFormat#updateRootAttr.

      Attachments

        1. HDFS-4694.002.patch
          4 kB
          Jing Zhao
        2. HDFS-4694.001.patch
          4 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: