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

globStatus returns null for file path that exists but is filtered

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

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.0
    • None
    • fs
    • None

    Description

      If a file path without globs is passed to globStatus and the file exists but the specified input filter suppresses it then globStatus will return null instead of an empty array. This makes it impossible for the caller to discern the difference between the file not existing at all vs. being suppressed by the filter and is inconsistent with the way it handles globs for an existing dir but fail to match anything within the dir.

      Attachments

        1. HADOOP-13343.001.patch
          2 kB
          Colin McCabe

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            jlowe Jason Darrell Lowe

            Dates

              Created:
              Updated:

              Slack

                Issue deployment