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 00DFA11A5A for ; Sat, 28 Jun 2014 17:32:25 +0000 (UTC) Received: (qmail 42394 invoked by uid 500); 28 Jun 2014 17:32:24 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 42315 invoked by uid 500); 28 Jun 2014 17:32:24 -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 42245 invoked by uid 99); 28 Jun 2014 17:32:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jun 2014 17:32:24 +0000 Date: Sat, 28 Jun 2014 17:32:24 +0000 (UTC) From: "Brock Noland (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1530) Java DataFileStream does not allow distinguishing between empty files and corrupt files 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-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046933#comment-14046933 ] Brock Noland commented on AVRO-1530: ------------------------------------ I was thinking that we'd throw a subclass of IOException so that'd be backwards compatible. Though, I do agree that clients could ignore zero length files. > Java DataFileStream does not allow distinguishing between empty files and corrupt files > --------------------------------------------------------------------------------------- > > Key: AVRO-1530 > URL: https://issues.apache.org/jira/browse/AVRO-1530 > Project: Avro > Issue Type: Bug > Reporter: Brock Noland > > When writing data to HDFS, especially with Flume, it's possible to write empty files. When you run Hive queries over this data, the job fails with "Not a data file." from here https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/file/DataFileStream.java#L102 -- This message was sent by Atlassian JIRA (v6.2#6252)