You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brahma Reddy Battula (Jira)" <ji...@apache.org> on 2020/03/11 13:26:00 UTC
[jira] [Commented] (HADOOP-16685) FileSystem#listStatusIterator
does not check if given path exists
[ https://issues.apache.org/jira/browse/HADOOP-16685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056996#comment-17056996 ]
Brahma Reddy Battula commented on HADOOP-16685:
-----------------------------------------------
This will not cause any incompatiable issue..?
> FileSystem#listStatusIterator does not check if given path exists
> -----------------------------------------------------------------
>
> Key: HADOOP-16685
> URL: https://issues.apache.org/jira/browse/HADOOP-16685
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Sahil Takiar
> Assignee: Sahil Takiar
> Priority: Major
> Fix For: 3.3.0, 3.2.2
>
>
> The Javadocs of FileSystem#listStatusIterator(final Path p) state that it "@throws FileNotFoundException if <code>p</code> does not exist". However, that does not seem to be the case. The method simply creates a DirListingIterator which doesn't do an existence check.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org