[
https://issues.apache.org/jira/browse/HDFS-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084775#comment-13084775
]
Eli Collins commented on HDFS-2019:
-----------------------------------
Never mind, list returns an empty list if the directory is empty. Sorry for the
noise.
> Fix all the places where Java method File.list is used with FileUtil.list API
> -----------------------------------------------------------------------------
>
> Key: HDFS-2019
> URL: https://issues.apache.org/jira/browse/HDFS-2019
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node
> Affects Versions: 0.23.0
> Reporter: Bharath Mundlapudi
> Assignee: Bharath Mundlapudi
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: HDFS-2019-1.patch
>
>
> This new method FileUtil.list will throw an exception when disk is bad rather
> than returning null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira