You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "M. Manna (Jira)" <ji...@apache.org> on 2019/10/03 16:46:02 UTC

[jira] [Resolved] (KAFKA-5712) Expose ProducerConfig in the KafkaProducer clients

     [ https://issues.apache.org/jira/browse/KAFKA-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

M. Manna resolved KAFKA-5712.
-----------------------------
      Reviewer: Bill Bejeck
    Resolution: Information Provided

> Expose ProducerConfig in the KafkaProducer clients
> --------------------------------------------------
>
>                 Key: KAFKA-5712
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5712
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients
>            Reporter: Leo Xuzhang Lin
>            Priority: Trivial
>
> There is no easy way to introspect into a Producer's configuration. 
> For important configurations such as `acks` and `retries`, it is useful to be able to verify programmatically the value for those configurations. 
> Since the ProducerConfig object is read only, there seems to be no harm to expose that in a getter.
> ProducerConfig value in KafkaProducer:
> https://github.com/apache/kafka/blob/0.11.0/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L246



--
This message was sent by Atlassian Jira
(v8.3.4#803005)