[
https://issues.apache.org/jira/browse/AVRO-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13851540#comment-13851540
]
Mika Ristimaki commented on AVRO-1405:
--------------------------------------
Hi,
Well that looks strange. The errors say that there are symbol redefinitions in
lines after 147, but if you check the patch, test_avro_1405.c should be just
141 lines.
Also looks like your compiler is not using C99 standard to build the code. I
can fix that (I'll send a new patch later this week), but what is Avro C point
of view for this in general. From this I assume everything should be C89
compliant. By the way, it looks like the c standard is not explicitly defined
anywhere (when I run make everything compiles just fine, but for Doug it
doesn't). I'm no specialist in Make files nor CMake so I'm just interested to
know.
> Avro-c may not handle eof correctly if avro data file contains multiple sync
> markers
> ------------------------------------------------------------------------------------
>
> Key: AVRO-1405
> URL: https://issues.apache.org/jira/browse/AVRO-1405
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.7.5
> Reporter: Mika Ristimaki
> Assignee: Mika Ristimaki
> Priority: Minor
> Fix For: 1.7.6
>
> Attachments: AVRO-1405.patch
>
>
> I encountered a bug in the Avro C API. If the following is done, it seems
> that the Avro data file reader can not read the file correctly
> {code}
> while (has values to write) {
> Open file for writing
> Write a value to the file
> Close the writer
> }
> {code}
> Reading this file with Avro data file reader fails with EOF after only the
> first item has been read from the file.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)