[ 
https://issues.apache.org/jira/browse/HDFS-2813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190520#comment-13190520
 ] 

Bochun Bai commented on HDFS-2813:
----------------------------------

Every path contains (non-wildcard && non-every-parent-existing) level following 
wildcard level
is affected.

FileSystem.globPathsLevel caused this problem.
It appends non-wildcard level directly.

When calculating [/A1/A2,/B1/B2,/C1/C2]'s children which named "D",
the correct result should be [/A1/A2/D, /C1/C2/D]

                
> Wildcard listing should work when parent directory does not exist
> -----------------------------------------------------------------
>
>                 Key: HDFS-2813
>                 URL: https://issues.apache.org/jira/browse/HDFS-2813
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 0.21.0
>            Reporter: Bochun Bai
>
> For example, we have a directory structure like this:
> \A1\A2\D\F
> \B1\B2
> \C1\C2\D\F
> And "hadoop fs -ls /\*/\*/D/\*"
> should return two files instead of die with error "/B1/B2/D does not exist".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to