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

Prevent renaming a symlink to its target

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.21.0
    • namenode
    • None
    • Reviewed

    Description

      Here's the HDFS side of HADOOP-6563:

      • Small bug fix for renaming a symlink to it's target
      • Hdfs#getFileBlockLocations needs to use getUriPath() to ensure an absolute path is passed in. See minor change to INode#getPathNames, which now asserts instead of returning null and causing NPEs. This was exposed via calling FileContext#getFileBlockLocations using a symlink.
      • Comment in FSImage around symlinks and image loading

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--hdfs-1088-4.patch
          6 kB
          Eli Collins
        2. ASF.LICENSE.NOT.GRANTED--hdfs-1088-3.patch
          7 kB
          Eli Collins
        3. ASF.LICENSE.NOT.GRANTED--hdfs-1088-2.patch
          7 kB
          Eli Collins
        4. hdfs-1088-1.patch
          3 kB
          Eli Collins

        Issue Links

        Activity

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

          People

            eli Eli Collins
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment