[
https://issues.apache.org/jira/browse/HADOOP-7316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044138#comment-13044138
]
Todd Lipcon commented on HADOOP-7316:
-------------------------------------
bq. DFSInputStream#seek should really throw an EOFException if seeking beyond
the end of stream, but changing it to do that now would break compatibility =(
Actually, Java's RandomAccessFile API lets you seek way past the end of a file
with no exception. The next read() call will simply return -1. But asking for
"position()" on the file's channel continues to return the past-eof offset.
> Add public javadocs to FSDataInputStream and FSDataOutputStream
> ---------------------------------------------------------------
>
> Key: HADOOP-7316
> URL: https://issues.apache.org/jira/browse/HADOOP-7316
> Project: Hadoop Common
> Issue Type: Improvement
> Components: documentation
> Reporter: Jonathan Hsieh
> Assignee: Eli Collins
> Fix For: 0.23.0
>
> Attachments: hadoop-7316-1.patch, hadoop-7316-2.patch,
> hadoop-7316-3.patch
>
>
> This is a method made public for testing. In comments in HADOOP-7301 after
> commit, adding javadoc comments was requested. This is a follow up jira to
> address it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira