[
https://issues.apache.org/jira/browse/HADOOP-17415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477858#comment-17477858
]
Monthon Klongklaew edited comment on HADOOP-17415 at 1/19/22, 10:52 AM:
------------------------------------------------------------------------
Need more information about this one.
We can get the object length and update it on first read, but how can we
determine if it is a file or directory, or doesn't exist, without a probe?
>From what I see, an exception is expected when using openFile against a
>directory or no file.
was (Author: JIRAUSER281330):
Need more information about this one.
We can get the object length and update it on first read, but how can we
determine if it is a file or directory without a probe?
>From what I see, an exception is expected when using openFile against a
>directory.
> Use S3 content-range header to update length of an object during reads
> ----------------------------------------------------------------------
>
> Key: HADOOP-17415
> URL: https://issues.apache.org/jira/browse/HADOOP-17415
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.3.0
> Reporter: Steve Loughran
> Priority: Major
>
> As part of all the openFile work, knowing full length of an object allows for
> a HEAD to be skipped. But: code knowing only the splits don't know the final
> length of the file.
> If the content-range header is used, then as soon as a single GET is
> initiated against an object, if the field is returned then we can update the
> length of the S3A stream to its real/final length
> Also: when any input stream fails with an EOF exception, we can distinguish
> stream-interrupted from "no, too far"
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]