You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2014/10/22 17:12:35 UTC
[jira] [Updated] (AVRO-1596) Cannot read past corrupted block in
Avro data file
[ https://issues.apache.org/jira/browse/AVRO-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom White updated AVRO-1596:
----------------------------
Attachment: AVRO-1596.patch
The problem is that if a block is corrupt then the availableBlock boolean will never be updated to false in DataFileStream#nextRawBlock, so next() will next read the next block correctly.
Here's a fix with a unit test.
> Cannot read past corrupted block in Avro data file
> --------------------------------------------------
>
> Key: AVRO-1596
> URL: https://issues.apache.org/jira/browse/AVRO-1596
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.7
> Reporter: Tom White
> Assignee: Tom White
> Fix For: 1.8.0
>
> Attachments: AVRO-1596.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)