Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5712

Expose ProducerConfig in the KafkaProducer clients

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Information Provided
    • None
    • None
    • clients
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            leoxlin Leo Xuzhang Lin
            Bill Bejeck Bill Bejeck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: