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 C623BE0CA for ; Thu, 7 Feb 2013 19:33:13 +0000 (UTC) Received: (qmail 72327 invoked by uid 500); 7 Feb 2013 19:33:13 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 72260 invoked by uid 500); 7 Feb 2013 19:33:13 -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 72251 invoked by uid 99); 7 Feb 2013 19:33:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 19:33:13 +0000 Date: Thu, 7 Feb 2013 19:33:13 +0000 (UTC) From: "Hudson (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1242) AvroTrevniOutputFormat Metadata filter subString bug 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-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573832#comment-13573832 ] Hudson commented on AVRO-1242: ------------------------------ Integrated in AvroJava #344 (See [https://builds.apache.org/job/AvroJava/344/]) AVRO-1242. Java: Fix AvroTrevniOutputFormat to correctly get file metadata from JobConf. Contributed by Ted Malaska. (Revision 1443604) Result = FAILURE cutting : Files : * /avro/trunk/CHANGES.txt * /avro/trunk/lang/java/trevni/avro/src/main/java/org/apache/trevni/avro/AvroTrevniOutputFormat.java * /avro/trunk/lang/java/trevni/avro/src/test/java/org/apache/trevni/avro/TestMetadataFiltering.java > AvroTrevniOutputFormat Metadata filter subString bug > ---------------------------------------------------- > > Key: AVRO-1242 > URL: https://issues.apache.org/jira/browse/AVRO-1242 > Project: Avro > Issue Type: Bug > Affects Versions: 1.7.4 > Reporter: Ted Malaska > Assignee: Ted Malaska > Fix For: 1.7.4 > > Attachments: AVRO-1234.patch.1, AVRO-1242.patch > > > In AvroTrevniOutputFormat there seems to be a cut and post error in the metadata filtering. The result is not "trevni.meta." metadatas will successfully get to the writer. > if (e.getKey().startsWith(META_PREFIX)) > meta.put(e.getKey().substring(AvroJob.TEXT_PREFIX.length()), > e.getValue().getBytes(MetaData.UTF8)); > META_PREFIX = "trevni.meta." > TEXT_PREFIX = "avro.meta.text." -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira