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

Clean up the addNode/addChild/addChildNoQuotaCheck methods in FSDirectory

    XMLWordPrintableJSON

Details

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

    Description

      • Returning the same INode back is not useful. It is better to simply return a boolean to indicate whether the inode is added.
      • The value of childDiskspace parameter is always UNKNOWN_DISK_SPACE.
      • In most cases, the value of the pos parameter is length - 1.

      Attachments

        1. h4209_20121118.patch
          22 kB
          Tsz-wo Sze
        2. h4209_20121118b.patch
          26 kB
          Tsz-wo Sze
        3. h4209_20121119.patch
          34 kB
          Tsz-wo Sze
        4. h4209_20121121.patch
          29 kB
          Tsz-wo Sze
        5. h4209_20121126.patch
          29 kB
          Tsz-wo Sze
        6. h4209_20121126b.patch
          28 kB
          Tsz-wo Sze
        7. h4209_20121127.patch
          28 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: