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

A few improvements on INodeDirectory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.3-alpha
    • namenode
    • None
    • Reviewed

    Description

      Below are a few improvements on INodeDirectory

      • Add a utility method for casting from INode;
      • avoid creating new empty list and INode arrays;
      • renames getChildren() and getChildrenRaw(), rewrite the javadoc.

      Also,

      • clean up isDirEmpty(..) and isEmpty() in FSDirectory

      Attachments

        1. h4112_20121025.patch
          13 kB
          Tsz-wo Sze
        2. h4112_20121025b.patch
          15 kB
          Tsz-wo Sze
        3. h4112_20121025c.patch
          14 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: