Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-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 4043E10870 for ; Tue, 23 Dec 2014 00:24:14 +0000 (UTC) Received: (qmail 8500 invoked by uid 500); 23 Dec 2014 00:24:13 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 8432 invoked by uid 500); 23 Dec 2014 00:24:13 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 8420 invoked by uid 99); 23 Dec 2014 00:24:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 00:24:13 +0000 Date: Tue, 23 Dec 2014 00:24:13 +0000 (UTC) From: "Gwen Shapira (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-1824) in ConsoleProducer - properties key.separator and parse.key no longer work 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/KAFKA-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14256363#comment-14256363 ] Gwen Shapira commented on KAFKA-1824: ------------------------------------- I added tests, I also did some refactoring to ConsoleProducer to allow testing (i.e. pulled some portions off main() to separate functions where we can test them). One caveat - This patch removes an undocumented feature: Before the patch, properties specified in --property were passed to the producer (even though it is documented as properties for the MessageReader), so users could configure producer properties not supported by the console producer directly to the underlying producer. Now the properties specified in --property are only sent to the reader, as documented. If we think that allowing users to send custom properties to producer is useful, I can add an additional option (--producer-property). > in ConsoleProducer - properties key.separator and parse.key no longer work > -------------------------------------------------------------------------- > > Key: KAFKA-1824 > URL: https://issues.apache.org/jira/browse/KAFKA-1824 > Project: Kafka > Issue Type: Bug > Reporter: Gwen Shapira > Assignee: Gwen Shapira > Fix For: 0.8.3 > > Attachments: KAFKA-1824.patch, KAFKA-1824.patch, KAFKA-1824_2014-12-22_16:17:42.patch > > > Looks like the change in kafka-1711 breaks them accidentally. > reader.init is called with readerProps which is initialized with commandline properties as defaults. > the problem is that reader.init checks: > if(props.containsKey("parse.key")) > and defaults don't return true in this case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)