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

TimeoutException cause is insufficiently documented for the KafkaProducer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.1, 2.3.0
    • None
    • documentation, producer
    • None

    Description

      The javadocs of the org.apache.kafka.clients.producer.KafkaProducer class has partially articulated description for the TimeoutException, wherever applicable.

      The document reads - "TimeoutException - If the time taken for fetching metadata or allocating memory for the record has surpassed max.block.ms."

      While we are aware that this exception can also be thrown if the RTM occurs when the message is on the accumulator and the batch expires. The current description is misleading the developers who try to optimize the producer config and if they face this issue

      https://kafka.apache.org/23/javadoc/org/apache/kafka/common/errors/TimeoutException.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            Betta Ramkishan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: