Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A71C10E53 for ; Thu, 19 Dec 2013 10:15:15 +0000 (UTC) Received: (qmail 42483 invoked by uid 500); 19 Dec 2013 10:15:11 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 42410 invoked by uid 500); 19 Dec 2013 10:15:09 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 42332 invoked by uid 99); 19 Dec 2013 10:15:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 10:15:07 +0000 Date: Thu, 19 Dec 2013 10:15:07 +0000 (UTC) From: "Mika Ristimaki (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1405) Avro-c may not handle eof correctly if avro data file contains multiple sync markers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852784#comment-13852784 ] Mika Ristimaki commented on AVRO-1405: -------------------------------------- Douglas thanks for all the info on building and where to find the flags etc. I'll take that into account if/when I'll submit other patches. > 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, 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)