You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Karsten Spang (Jira)" <ji...@apache.org> on 2022/04/08 14:55:00 UTC

[jira] [Created] (KAFKA-13810) Document behavior of KafkaProducer.flush() w.r.t callbacks

Karsten Spang created KAFKA-13810:
-------------------------------------

             Summary: Document behavior of KafkaProducer.flush() w.r.t callbacks
                 Key: KAFKA-13810
                 URL: https://issues.apache.org/jira/browse/KAFKA-13810
             Project: Kafka
          Issue Type: Improvement
            Reporter: Karsten Spang


The javadoc (3.1.0) for KafkaProducer says
{panel}
The post-condition of {{flush()}} is that any previously sent record will have completed (e.g. {{{}Future.isDone() == true{}}}). 
{panel}
It does not say anything about callbacks, though. It is not clear whether all callbacks have returned when {{flush()}} returns.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)