[ 
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)

Reply via email to