[
https://issues.apache.org/jira/browse/HADOOP-9016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13803067#comment-13803067
]
Jonathan Eagles commented on HADOOP-9016:
-----------------------------------------
Thanks for fixing up the title and type for the JIRA. I'm +1 on these changes.
> org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.skip(long)
> must never return negative value.
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-9016
> URL: https://issues.apache.org/jira/browse/HADOOP-9016
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 3.0.0, 2.3.0
> Reporter: Ivan A. Veselovsky
> Assignee: Ivan A. Veselovsky
> Priority: Minor
> Attachments: HADOOP-9016--b.patch, HADOOP-9016-branch-0.23--d.patch,
> HADOOP-9016-branch-0.23--e.patch, HADOOP-9016--c.patch, HADOOP-9016--d.patch,
> HADOOP-9016--e.patch, HADOOP-9016--f.patch, HADOOP-9016.patch
>
>
> The patch fixes bug in method
> org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.skip(long):
> // the contract is described in java.io.InputStream.skip(long):
> // this method returns the number of bytes actually skipped, so,
> // the return value should never be negative.
> The patch adds tests for the fixed functionality + other tests to cover other
> uncovered methods of classes
> org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream,
> org.apache.hadoop.fs.HarFileSystem.HarFSDataInputStream.HarFsInputStream.
--
This message was sent by Atlassian JIRA
(v6.1#6144)