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

A few improvements on INodeDirectory

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment