[ 
https://issues.apache.org/jira/browse/HADOOP-11531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran resolved HADOOP-11531.
-------------------------------------
    Resolution: Won't Fix

> NativeAzureFsInputStream doesn't report error on seek+read past EOF
> -------------------------------------------------------------------
>
>                 Key: HADOOP-11531
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11531
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.6.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> This is based on looking at the code, needs a test to verify.
> If you look at {{NativeAzureFsInputStream.skip(pos)}}, the code opens the 
> input source, then sets its position to be {{pos = in.skip(pos)}}. This will 
> be the position requested, or the length of the file: whichever is less.
> A read() will then return -1 —its the end of the file. 
> All the other filesystems behave differently in throwing an EOF if you seek 
> past the length of the file, or, POSIX-style, raising it on the read after a 
> seek past the EOF.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to