Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9652

Allow RawLocalFs#getFileLinkStatus to fill in the link owner and mode if requested

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None
    • Reviewed

    Description

      RawLocalFs#getFileLinkStatus does not actually get the owner and mode of the symlink, but instead uses the owner and mode of the symlink target. If the target can't be found, it fills in bogus values (the empty string and FsPermission.getDefault) for these.

      Symlinks have an owner distinct from the owner of the target they point to, and getFileLinkStatus ought to expose this.

      In some operating systems, symlinks can have a permission other than 0777. We ought to expose this in RawLocalFilesystem and other places, although we don't necessarily have to support this behavior in HDFS.

      Attachments

        1. 0001-temporarily-disable-HADOOP-9652.patch
          1 kB
          Colin McCabe
        2. hadoop-9452-1.patch
          29 kB
          Andrew Wang
        3. hadoop-9652-2.patch
          27 kB
          Andrew Wang
        4. hadoop-9652-3.patch
          27 kB
          Andrew Wang
        5. hadoop-9652-4.patch
          33 kB
          Andrew Wang
        6. hadoop-9652-5.patch
          33 kB
          Andrew Wang
        7. hadoop-9652-6.patch
          33 kB
          Andrew Wang
        8. hadoop-9652-workaround.patch
          2 kB
          Andrew Wang

        Issue Links

          Activity

            People

              andrew.wang Andrew Wang
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: