hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-7344) globStatus doesn't grok groupings with a slash
Date Fri, 20 Sep 2013 22:20:52 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-7344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe resolved HADOOP-7344.
------------------------------------------

             Tags:  
       Resolution: Fixed
    Fix Version/s: 2.3.0
         Assignee: Colin Patrick McCabe

This was fixed by the globber rework in HADOOP-9817.

{code}
cmccabe@keter:~/hadoop4> /h/bin/hadoop fs -mkdir -p /a/b/c
cmccabe@keter:~/hadoop4> /h/bin/hadoop fs -ls '/{a,a/b}'
Found 1 items
drwxr-xr-x   - cmccabe supergroup          0 2013-09-20 15:20 /a/b
Found 1 items
drwxr-xr-x   - cmccabe supergroup          0 2013-09-20 15:20 /a/b/c
{code}
                
> globStatus doesn't grok groupings with a slash
> ----------------------------------------------
>
>                 Key: HADOOP-7344
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7344
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Daryn Sharp
>            Assignee: Colin Patrick McCabe
>             Fix For: 2.3.0
>
>
> If a glob contains a grouping with a single item that contains a slash, ex. "{a/b}",
then globStatus throws {{"Illegal file pattern: Unclosed group near index 2"}} -- regardless
of whether the path exists.  However, if the glob set contains more than one item, ex. "{a/b,c}",
then it throws a {{NullPointerException}} from {{FileSystem.java:1277}}.
> {code}
> 1276: FileStatus[] files = globStatusInternal(new Path(filePattern), filter);
> 1277: for (FileStatus file : files) {
> 1278:   results.add(file);
> 1279: }
> {code}
> The method {{globStatusInternal}} can return null, so the iterator fails with the NPE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message