guozhangwang commented on a change in pull request #10495: URL: https://github.com/apache/kafka/pull/10495#discussion_r608898617
########## File path: clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java ########## @@ -874,6 +874,7 @@ public void abortTransaction() throws ProducerFencedException { * when send is invoked after producer has been closed. * @throws InterruptException If the thread is interrupted while blocked * @throws SerializationException If the key or value are not valid objects given the configured serializers + * @throws TimeoutException If the record could not be appended to the send buffer due to memory unavailable within {@code max.block.ms}. Review comment: Yes, we should add this as a possible reason as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org