[
https://issues.apache.org/jira/browse/HADOOP-9016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802824#comment-13802824
]
Ivan A. Veselovsky commented on HADOOP-9016:
--------------------------------------------
Hi, Jonathan,
Splitting the patch is difficult because the 2 patches would change the same
files and would be dependent on each other.
I converted this Jira to bug, changed the title and description. Now it is
positioned as a bugfix + tests to check the fix.
> 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)