hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11067) DFS#listStatusIterator(..) should throw FileNotFoundException if the directory deleted before fetching next batch of entries
Date Thu, 27 Oct 2016 08:13:58 GMT

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

Steve Loughran commented on HDFS-11067:
---------------------------------------

Could you add an extra couple of lines on this topic in the concurrency expectations of listStatus
in hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md ? It covers
changes in the dir being listed, but left out what happens if the dir itself goes away.

 

> DFS#listStatusIterator(..) should throw FileNotFoundException if the directory deleted
before fetching next batch of entries
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-11067
>                 URL: https://issues.apache.org/jira/browse/HDFS-11067
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Vinayakumar B
>            Assignee: Vinayakumar B
>         Attachments: HDFS-11067-01.patch
>
>
> DFS#listStatusIterator(..) currently stops iterating silently when the directory gets
deleted before fetching the next batch of entries.
> It should throw FileNotFoundException() and let user know that file is deleted in the
middle.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message