Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7F650200BEF for ; Wed, 4 Jan 2017 11:09:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7DE5E160B39; Wed, 4 Jan 2017 10:09:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E6C99160B3A for ; Wed, 4 Jan 2017 11:08:59 +0100 (CET) Received: (qmail 79383 invoked by uid 500); 4 Jan 2017 10:08:59 -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 79306 invoked by uid 99); 4 Jan 2017 10:08:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 10:08:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A463A2C2A66 for ; Wed, 4 Jan 2017 10:08:58 +0000 (UTC) Date: Wed, 4 Jan 2017 10:08:58 +0000 (UTC) From: "huxi (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-4434) KafkaProducer configuration is logged twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Jan 2017 10:09:00 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] huxi resolved KAFKA-4434. ------------------------- Resolution: Fixed Reviewer: Ismael Juma > KafkaProducer configuration is logged twice > ------------------------------------------- > > Key: KAFKA-4434 > URL: https://issues.apache.org/jira/browse/KAFKA-4434 > Project: Kafka > Issue Type: Bug > Components: config > Affects Versions: 0.10.0.1 > Reporter: Ruben de Gooijer > Assignee: huxi > Priority: Minor > Labels: newbie > Fix For: 0.10.2.0 > > > The constructor of org.apache.kafka.clients.producer.KafkaProducer accepts a ProducerConfig which when constructed logs the configuration: https://github.com/apache/kafka/blob/0.10.0.1/clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java#L58 . > However, when the construction of KafkaProducer proceeds the provided ProducerConfig is repurposed and another instance is created https://github.com/apache/kafka/blob/0.10.0.1/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L323 which triggers another log with the same contents (only the clientId can differ in case its not supplied in the original config). > At first sight this seems like unintended behaviour to me. At least it caused me to dive into it in order to verify if there weren't two producer instances running. -- This message was sent by Atlassian JIRA (v6.3.4#6332)