Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.1, 2.3.0
-
None
-
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