[ https://issues.apache.org/jira/browse/HDFS-5228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772191#comment-13772191 ]
Tsz Wo (Nicholas), SZE commented on HDFS-5228: ---------------------------------------------- > I don't think this by itself is cause to revert HADOOP-9418. 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. Hi Andrew, I am sorry to hear that your HADOOP-9418 patch causes a serious bug in DistributFileSystem, which is a very important client API. How exactly to audit DFS do you suggest so that it could avoid further bugs? It does seem that HADOOP-9418 has not been well tested. Do you agree? I do think reverting HADOOP-9418 may make more sense. > 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 > > > 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