[
https://issues.apache.org/jira/browse/HADOOP-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White updated HADOOP-3497:
------------------------------
Attachment: hadoop-3497-test.patch
Here's a test that exposes the issue. The problem is that the testing is done
per path component, so since the parent directory {{/a}} doesn't match the
filter the whole path {{/a/b}} is rejected.
> File globbing with a PathFilter is too restrictive
> --------------------------------------------------
>
> Key: HADOOP-3497
> URL: https://issues.apache.org/jira/browse/HADOOP-3497
> Project: Hadoop Core
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.17.0
> Reporter: Tom White
> Attachments: hadoop-3497-test.patch
>
>
> Consider the file hierarchy
> {noformat}
> /a
> /a/b
> {noformat}
> Calling the globStatus method on FileSystem with a path of
> {noformat}/*/*{noformat} and a PathFilter that only accepts {{/a/b}} returns
> no matches. It should return a single match: {{/a/b}}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.