hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Fabbri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13207) Specify FileSystem listStatus and listFiles
Date Wed, 01 Jun 2016 22:38:59 GMT

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

Aaron Fabbri commented on HADOOP-13207:

Took a quick scan of the attached patch.

Love the documentation, thanks.

{{+value is an instance of the `LocatedFileStatus` subclass of a `FileSystatus`,}}

Typo in last word (FileStatus)

+Callers MUST assume that if the iterator is not used immediately then
+the iteration operation itself MAY fail.

Not sure if this is well-defined.  "Immediately" has little meaning on a non-realtime system.
 Maybe specify that, after some time, the iteration may fail, and thus clients should handle
this with a retry?

{{+is defined as a generator of a `LocatedFileS`tatus` instance `ls`}}


+The ordering in which the elements of `resultset` are returned in the iterator
+is undefined.
+It follows, that the set of paths in
Unfinished sentence?

{{+of data which must be collected in a single}}

{{+Get the block size for a s}}
Here as well.

Test code looks good to me.

> Specify FileSystem listStatus and listFiles
> -------------------------------------------
>                 Key: HADOOP-13207
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13207
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: documentation, fs
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>         Attachments: HADOOP-13207-branch-2-001.patch, HADOOP-13207-branch-2-002.patch
> The many `listStatus`, `listLocatedStatus` and `listFiles` operations have not been completely
covered in the FS specification. There's lots of implicit use of {{listStatus()}} path, but
no coverage or tests of the others.

This message was sent by Atlassian JIRA

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

View raw message