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

Shixiong Zhu commented on HADOOP-15875:
---------------------------------------

[[email protected]] S3AInputStream can check this easily since it has the file 
length. 
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/BlockBlobInputStream.java#L123
 has the same check as well.

> S3AInputStream.seek should throw EOFException if seeking past the end of file
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-15875
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15875
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.2.0
>            Reporter: Shixiong Zhu
>            Priority: Minor
>
> I read the javadoc of `Seekable.seek` but it doesn't say what should be done 
> when seeking past the end of file. Right now, DFSInputStream throws new 
> EOFException, but S3AInputStream doesn't throw any error.
> I think it's better to have consistent behavior in `seek.`



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to