Hadoop Common
  1. Hadoop Common
  2. HADOOP-10276

RawLocalFs#getFileLinkStatus does not fill in the link owner and mode by default

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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.

        Issue Links

          Activity

          Colin Patrick McCabe created issue -
          Jason Lowe made changes -
          Field Original Value New Value
          Link This issue is cloned as HADOOP-9652 [ HADOOP-9652 ]
          Hide
          Jason Lowe added a comment -

          Cloned from HADOOP-9652, as that JIRA lays the groundwork but does not completely fix the originally reported issue.

          Show
          Jason Lowe added a comment - Cloned from HADOOP-9652 , as that JIRA lays the groundwork but does not completely fix the originally reported issue.
          Jason Lowe made changes -
          Summary CLONE - RawLocalFs#getFileLinkStatus does not fill in the link owner and mode RawLocalFs#getFileLinkStatus does not fill in the link owner and mode
          Assignee Colin Patrick McCabe [ cmccabe ]
          Fix Version/s 2.4.0 [ 12324587 ]
          Affects Version/s 2.2.0 [ 12325048 ]
          Jason Lowe made changes -
          Summary RawLocalFs#getFileLinkStatus does not fill in the link owner and mode RawLocalFs#getFileLinkStatus does not fill in the link owner and mode by default

            People

            • Assignee:
              Unassigned
              Reporter:
              Colin Patrick McCabe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development