Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1088

Prevent renaming a symlink to its target

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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
      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

          Gavin made changes -
          Link This issue is depended upon by HADOOP-6703 [ HADOOP-6703 ]
          Gavin made changes -
          Link This issue blocks HADOOP-6703 [ HADOOP-6703 ]
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Tom White made changes -
          Fix Version/s 0.21.0 [ 12314046 ]
          Fix Version/s 0.22.0 [ 12314241 ]
          Suresh Srinivas made changes -
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Suresh Srinivas made changes -
          Hadoop Flags [Reviewed]
          Fix Version/s 0.22.0 [ 12314241 ]
          Affects Version/s 0.22.0 [ 12314241 ]
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Eli Collins made changes -
          Attachment hdfs-1088-4.patch [ 12442020 ]
          Jakob Homan made changes -
          Summary Prevent renaming a symlink to it's target Prevent renaming a symlink to its target
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Eli Collins made changes -
          Attachment hdfs-1088-3.patch [ 12441993 ]
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Eli Collins made changes -
          Attachment hdfs-1088-2.patch [ 12441658 ]
          Eli Collins made changes -
          Link This issue blocks HADOOP-6703 [ HADOOP-6703 ]
          Eli Collins made changes -
          Link This issue is part of HDFS-254 [ HDFS-254 ]
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Attachment hdfs-1088-1.patch [ 12441103 ]
          Eli Collins made changes -
          Field Original Value New Value
          Link This issue blocks HADOOP-6563 [ HADOOP-6563 ]
          Eli Collins created issue -

            People

            • Assignee:
              Eli Collins
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development