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 4BA321771B for ; Wed, 5 Nov 2014 19:28:35 +0000 (UTC) Received: (qmail 83404 invoked by uid 500); 5 Nov 2014 19:28:35 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 83332 invoked by uid 500); 5 Nov 2014 19:28:35 -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 83316 invoked by uid 99); 5 Nov 2014 19:28:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 19:28:35 +0000 Date: Wed, 5 Nov 2014 19:28:35 +0000 (UTC) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AVRO-1302) Files written via Python and Avro 1.7.4 on Windows can't be read using Java program 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-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated AVRO-1302: ------------------------------- Fix Version/s: 1.8.0 > Files written via Python and Avro 1.7.4 on Windows can't be read using Java program > ----------------------------------------------------------------------------------- > > Key: AVRO-1302 > URL: https://issues.apache.org/jira/browse/AVRO-1302 > Project: Avro > Issue Type: Bug > Components: doc, python > Affects Versions: 1.7.4 > Reporter: Christopher Conner > Assignee: Lars Francke > Priority: Minor > Fix For: 1.8.0 > > Attachments: AVRO-1302.1.patch > > > I'm not sure if this is a Python issue, Avro issue or Windows issue. However, if create an Avro file on Windows using Python 2.7.4 and Avro 1.7.4. Then try to read it with a java program, it fails with: > Successfully opened the Python avro file now I'm going to attempt to read from it > Exception in thread "main" org.apache.avro.AvroRuntimeException: java.io.IOException: Invalid sync! > at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:210) > at JavaPythonAvroExample.main(JavaPythonAvroExample.java:27) > Caused by: java.io.IOException: Invalid sync! > at org.apache.avro.file.DataFileStream.nextRawBlock(DataFileStream.java:293) > at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:198) > ... 1 more -- This message was sent by Atlassian JIRA (v6.3.4#6332)