Details
Description
Currently KafkaProducer will invoke callback.onComplete() if it receives an ApiException during send(). This breaks the guarantee that callback will be invoked in order. It seems ApiException in send() only comes from metadata refresh. If so, we can probably simply throw it instead of invoking callback().
Attachments
Issue Links
- relates to
-
KAFKA-2200 kafkaProducer.send() should not call callback.onCompletion()
- Open
- links to