You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/02/01 18:43:34 UTC
[jira] [Created] (HADOOP-11531) NativeAzureFsInputStream doesn't
report error on seek+read past EOF
Steve Loughran created HADOOP-11531:
---------------------------------------
Summary: 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
(v6.3.4#6332)