avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1596) Cannot read past corrupted block in Avro data file
Date Wed, 22 Oct 2014 15:12:35 GMT

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

Mime
View raw message