Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
S3AInputStream implements skip() naively through the byte class: Reading and discarding all data. Efficient on classic "sequential" reads, provided the forward skip is <1MB. For larger skip values or on random IO, seek() should be used.
After some range checks/handling past-EOF skips to seek (EOF-1), a seek() should handle the skip file.
there are no FS contract tests for skip semantics
Attachments
Issue Links
- duplicates
-
HADOOP-14606 S3AInputStream: Handle http stream skip(n) skipping < n bytes in a forward seek
- Resolved
- relates to
-
HADOOP-14606 S3AInputStream: Handle http stream skip(n) skipping < n bytes in a forward seek
- Resolved