Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2.0
-
None
-
None
-
None
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
Issue Links
- is a clone of
-
HADOOP-9652 Allow RawLocalFs#getFileLinkStatus to fill in the link owner and mode if requested
- Closed