[
https://issues.apache.org/jira/browse/AVRO-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755675#comment-17755675
]
ASF subversion and git services commented on AVRO-3748:
-------------------------------------------------------
Commit 33631e1e0fa48af0cd4ff46a32cbdb809e326177 in avro's branch
refs/heads/dependabot/cargo/lang/rust/master/color-backtrace-0.6.0 from Steven
Aerts
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=33631e1e0 ]
AVRO-3748 [java] fix SeekableInputStream.skip (#2203)
The implementation of SeekableInputStream.skip had a longstantind issue
that it did a seek to a wrong position.
This issue is rather difficult to hit in avro as it is only used in
corner cases of for example the FastReader.
> issue with DataFileSeekableInput.SeekableInputStream.skip
> ---------------------------------------------------------
>
> Key: AVRO-3748
> URL: https://issues.apache.org/jira/browse/AVRO-3748
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.1
> Reporter: Steven Aerts
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> We found a longstanding bug in the implementation of
> {{DataFileSeekableInput.SeekableInputStream.skip.}}
> This skip function is not hit that often. It can for example be hit when the
> FastReader is enabled and it tries to skip a significant amount of data.
> The implmentation of this function is however fault and can result in data
> corruption or
> {{{}java.io.EOFException{}}}, as instead of skipping the number of bytes, it
> will seek to a wrong place in the file.
>
> We have a pull request ready to fix and test this issue.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)