kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huxi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-4434) KafkaProducer configuration is logged twice
Date Wed, 04 Jan 2017 10:08:58 GMT

     [ 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:
>            Reporter: Ruben de Gooijer
>            Assignee: huxi
>            Priority: Minor
>              Labels: newbie
>             Fix For:
> The constructor of org.apache.kafka.clients.producer.KafkaProducer accepts a ProducerConfig
which when constructed logs the configuration: https://github.com/apache/kafka/blob/
> However, when the construction of KafkaProducer proceeds the provided ProducerConfig
is repurposed and another instance is created https://github.com/apache/kafka/blob/
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

View raw message