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

FileSystem#globStatus and FileContext#globStatus need to work with symlinks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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

        1. HADOOP-9817.006.patch
          39 kB
          Colin McCabe
        2. HADOOP-9817.005.patch
          39 kB
          Colin McCabe
        3. HADOOP-9817.004.patch
          34 kB
          Colin McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: