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

File globbing with a PathFilter is too restrictive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.17.0
    • Fix Version/s: 0.20.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      Changed the semantics of file globbing with a PathFilter (using the globStatus method of FileSystem). Previously, the filtering was too restrictive, so that a glob of /*/* and a filter that only accepts /a/b would not have matched /a/b. With this change /a/b does match.
      Show
      Changed the semantics of file globbing with a PathFilter (using the globStatus method of FileSystem). Previously, the filtering was too restrictive, so that a glob of /*/* and a filter that only accepts /a/b would not have matched /a/b. With this change /a/b does match.

      Description

      Consider the file hierarchy

      /a
      /a/b
      

      Calling the globStatus method on FileSystem with a path of

      /*/*

      and a PathFilter that only accepts /a/b returns no matches. It should return a single match: /a/b.

        Attachments

        1. hadoop-3497.patch
          6 kB
          Tom White
        2. hadoop-3497-test.patch
          2 kB
          Tom White
        3. hadoop-3497-v2.patch
          5 kB
          Tom White
        4. hadoop-3497-v3.patch
          6 kB
          Tom White

          Activity

            People

            • Assignee:
              tomwhite Tom White
              Reporter:
              tomwhite Tom White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: