Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4243

INodeDirectory.replaceChild(..) does not update parent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.1.0-beta
    • namenode
    • None
    • Reviewed

    Description

      The method replaces an existing child with a new child. However, it does not take care the case the child also an INodeDirectory. In such case, the parent pointers of the children of the child have to be updated to the new child.

      Only FSDirectory.unprotectedSetQuota(..) calls this method so that the child is always an INodeDirectory.

      Attachments

        1. HDFS-4243.003.patch
          8 kB
          Jing Zhao
        2. HDFS-4243.002.patch
          5 kB
          Jing Zhao
        3. HDFS-4243.001.patch
          4 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: