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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 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

        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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment