Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
-
None
Description
FileSystem#globStatus and FileContext#globStatus need to work with symlinks. Currently, they resolve all links, so that if you have:
/alpha/beta /alphaLink -> alpha
and you take globStatus(/alphaLink/*), you will get /alpha/beta, rather than the expected /alphaLink/beta.
We even resolve terminal symlinks, which would prevent listing a symlink in FSShell, for example. Instead, we should build up the path incrementally. This will allow the shell to behave as expected, and also allow custom globbers to "see" the correct paths for symlinks.
Attachments
Attachments
Issue Links
- blocks
-
HDFS-4019 FSShell should support creating symlinks
- Patch Available
- breaks
-
HADOOP-9877 Fix listing of snapshot directories in globStatus
- Closed
-
HADOOP-9887 globStatus does not correctly handle paths starting with a drive spec on Windows
- Closed
-
HDFS-5093 TestGlobPaths should re-use the MiniDFSCluster to avoid failure on Windows
- Closed
- is duplicated by
-
HADOOP-7344 globStatus doesn't grok groupings with a slash
- Closed
-
HDFS-5021 FSShell delete and FSShell rename should operate on symlinks, not their targets
- Closed
- is related to
-
HADOOP-9865 FileContext.globStatus() has a regression with respect to relative path
- Closed
-
HADOOP-9847 TestGlobPath symlink tests fail to cleanup properly
- Closed