Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.15.0
-
None
Description
Currently, when KafkaProducerPusher is closed, it invokes KafkaProducer#close(). However,close() only guarantees delivery of in-flight messages, not the messages in the producer buffer waiting to be sent out. This results in data loss.
The fix ensures that we call flush() before close(). As a result, any buffered messages are immediately pushed out and we block until the messages are acked.
Attachments
Issue Links
- links to