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 21BA811E22 for ; Mon, 25 Aug 2014 20:18:59 +0000 (UTC) Received: (qmail 82536 invoked by uid 500); 25 Aug 2014 20:18:58 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 82450 invoked by uid 500); 25 Aug 2014 20:18:58 -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 82438 invoked by uid 99); 25 Aug 2014 20:18:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2014 20:18:58 +0000 Date: Mon, 25 Aug 2014 20:18:58 +0000 (UTC) From: "Ben Walsh (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=14109656#comment-14109656 ] Ben Walsh commented on AVRO-1405: --------------------------------- Fixed in AVRO-1572. > 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.2#6252)