[
https://issues.apache.org/jira/browse/AVRO-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Douglas Creager updated AVRO-819:
---------------------------------
Attachment: 0001-AVRO-819.-Propagate-errors-correctly-in-C-library.patch
Here's a fix, along with a test case. Just needed to update a couple of the
"check" macros in avro_private.h to return error rvals.
> C library not propagating error codes when reading files
> --------------------------------------------------------
>
> Key: AVRO-819
> URL: https://issues.apache.org/jira/browse/AVRO-819
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.5.1
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Attachments:
> 0001-AVRO-819.-Propagate-errors-correctly-in-C-library.patch
>
>
> The C library's data file reader isn't propagating error codes correctly,
> which causes avro_file_reader_read to not correctly detect EOF. Instead, it
> will return as if it's reading the final block of the file twice, though it's
> not filling in the datum parameter for the second pass through the block.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira