[jira] [Updated] (KAFKA-4434) KafkaProducer configuration is logged twice
[ https://issues.apache.org/jira/browse/KAFKA-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] huxi updated KAFKA-4434: Assignee: kevin.chen > 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: kevin.chen >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)
[jira] [Updated] (KAFKA-4434) KafkaProducer configuration is logged twice
[ https://issues.apache.org/jira/browse/KAFKA-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ismael Juma updated KAFKA-4434: --- Fix Version/s: 0.10.2.0 > 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 >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)
[jira] [Updated] (KAFKA-4434) KafkaProducer configuration is logged twice
[ https://issues.apache.org/jira/browse/KAFKA-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruben de Gooijer updated KAFKA-4434: Description: 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. was: 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. 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. > 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 >Priority: Minor > Labels: newbie > > 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)