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

globStatus returns null for file path that exists but is filtered

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: fs
    • Labels:
      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

              People

              • Assignee:
                Unassigned
                Reporter:
                jlowe Jason Darrell Lowe
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: