hadoop-common-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] (HADOOP-9310) {FileSystem,FileContext}.getFileBlockLocations() are incompletely and incorrectly specified
Date Fri, 15 Feb 2013 14:05:13 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579191#comment-13579191

Steve Loughran commented on HADOOP-9310:

To fix this, I propose
# the javadocs for the out of range -> empty array policy is defined. The test {{TestGetFileBlockLocations}}
does implicitly test for this against the default FS, but it isn't part of the contract test
# The expected behaviour for a directory argument needs to be defined, an FS Contract test
written, and all filesystems for which there is built in support must pass the test.
> {FileSystem,FileContext}.getFileBlockLocations() are incompletely and incorrectly specified
> -------------------------------------------------------------------------------------------
>                 Key: HADOOP-9310
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9310
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Steve Loughran
> The javadocs of the {{getFileBlockLocations()}} methods in {{FileSystem}} and {{FileContext}}
incorrectly specify the result when a nonexistent region is passed in (it's an empty array,
not null), and nowhere is the response to a call of the method against a directory defined.

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

View raw message