Steve Loughran created HADOOP-14606:
---------------------------------------
Summary: S3AInputStream: Handle skip(n) skipping < n bytes in a
forward seek
Key: HADOOP-14606
URL: https://issues.apache.org/jira/browse/HADOOP-14606
Project: Hadoop Common
Issue Type: Sub-task
Components: fs/s3
Affects Versions: 2.8.1
Reporter: Steve Loughran
There's some hints in the InputStream docs that {{skip(n)}} may skip <n bytes.
Codepaths only seem to do this if read() returns -1, meaning end of stream is
reached. Wh
If that happens when doing a forward seek via skip, then we have got our
numbers wrong and are in trouble. Look for a negative response, log @ ERROR and
revert to a close/reopen seek to an absolute position.
*I have no evidence of this acutally occurring*
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]