You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Mingliang Liu (Jira)" <ji...@apache.org> on 2020/01/21 22:37:00 UTC
[jira] [Resolved] (HADOOP-16759) Filesystem openFile() builder to
take a FileStatus param
[ https://issues.apache.org/jira/browse/HADOOP-16759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mingliang Liu resolved HADOOP-16759.
------------------------------------
Fix Version/s: 3.3.0
Hadoop Flags: Reviewed
Resolution: Fixed
Committed to {{trunk}} branch. I see major conflicts when backporting to 3.2. [~stevel@apache.org] Do you plan to bulk backport some time later those patches which apply, or you upload a new patch for branch-3.2/3.1? Thanks!
> Filesystem openFile() builder to take a FileStatus param
> --------------------------------------------------------
>
> Key: HADOOP-16759
> URL: https://issues.apache.org/jira/browse/HADOOP-16759
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs, fs/azure, fs/s3
> Affects Versions: 3.3.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 3.3.0
>
>
> Let us pass in a file status to openFile() so that S3A & ABFS will skip their own HEAD requests just to see if a file is there, a normal file and get its length + etag,
> {code}
> CompletableFuture<FSDataInputStream> streamF = fs.openFile(stat.getPath())
> .withFileStatus(stat).build()
> {code}
> code opening files off a listing of everything in a directory can eliminate a lot of requests here.
> Also: change the specification of openFile's completable future to say "returned stream may only raise FNFE, access restrictions on the first read"
> That is: it's not just potentially an async open, it's possibly lazy evaluated entirely.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org