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

Remove the assumption that symlink is inside HDFS namespace and resolvable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.0.0-alpha1
    • None
    • namenode
    • None

    Description

      Currently HDFS always resolves symlink when setting certain file attributes, such as setPermission and setTime. And thus the client can't set some file attributes of the symlink itself.

      Two major problems with current symlink support:
      1. HDFS assumes the link is inside its own namespace. This is a problem when HDFS is integrated into client's file system namespace.
      2. Suppose the linked target is inside HFDS, HDFS doesn't really check whether the target saved in the link file is a valid path. Even the target was valid, it could become invalid as the namespace changes.

      For example, create a symlink /user/brandon/iamlink.lnk and it has the content(target) as "/invalid/path". The file /user/brandon/iamlink.lnk can't be deleted since HDFS can't resolve it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brandonli Brandon Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: