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 "Steve Loughran (JIRA)" <ji...@apache.org> on 2013/02/15 15:05:13 UTC

[jira] [Commented] (HADOOP-9310) {FileSystem,FileContext}.getFileBlockLocations() are incompletely and incorrectly specified

    [ 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 suite.
# 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