FAQ
DistributedFileSystem::listStatus incorrectly returns null for empty result sets
--------------------------------------------------------------------------------

Key: HDFS-538
URL: https://issues.apache.org/jira/browse/HDFS-538
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Jakob Homan


Currently the listStatus method returns null if no files match the request. This differs from the Checksum/LocalFileSystem implementation, which returns an empty array, and the nontvery-explict prescription of the FileSystem interface: "{{@return the statuses of the files/directories in the given patch}}" It's better to return an empty collection than have to add extra null checks. The method should return an empty array.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphdfs-dev @
categorieshadoop
postedAug 11, '09 at 7:36p
activeAug 11, '09 at 7:36p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Jakob Homan (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase