hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5228) The RemoteIterator returned by DistributedFileSystem.listFiles(..) may throw NPE
Date Mon, 23 Sep 2013 18:53:03 GMT

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

Andrew Wang commented on HDFS-5228:
-----------------------------------

Chris, I'm +1 for your v2 patch, thanks for the help.

Hey Nicholas:

bq. Which part of HADOOP-8040? Where are the new tests?

HADOOP-9370 and HADOOP-9355 extended the FileContext symlink tests to FileSystem. These are
both linked on HADOOP-8040. You can also see this if you look for tests in the HADOOP-9418
patch.

bq. Andrew, you have not answered my following question. I hope that you are not avoiding
it.

I'm going to quote myself to answer the question:

bq.  Basically all DFS methods are supposed to pass Paths through fixRelativePart and then
getPathName, it just looks like we missed this one. It might be worth auditing DFS to make
sure we didn't miss anything else.

Chris already did this audit, perhaps you can ask him if you need additional in-person clarification.
                
> The RemoteIterator returned by DistributedFileSystem.listFiles(..) may throw NPE
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-5228
>                 URL: https://issues.apache.org/jira/browse/HDFS-5228
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.1.0-beta
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>         Attachments: h5228_20130919.patch, h5228_20130919_test.patch, HDFS-5228.2.patch
>
>
> Get a RemoteIterator from DistributedFileSystem.listFiles(..) with a relative path. 
Then, it will result a NullPointerException when calling hasNext() from the RemoteIterator.
> This bug was discovered by Arnaud:
> http://hortonworks.com/community/forums/topic/new-bug-in-hdfs-listfiles-method/

--
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