Description
It looks like there's not tests of the new KafkaProducer
for the various acks
levels:
https://github.com/dpkp/kafka-python/blob/master/test/test_producer.py
These tests are present for the old/deprecated producers here:
kafka-python/test/test_producer_integration.py
Lines 417 to 466 in 3ff3d75
We should add/migrate tests of these scenarios to the new KafkaProducer
.
Reason:
We just observed a very confusing scenario in production where a KafkaProducer
-based producer is sending thousands of messages using acks=1
, none of which returned any errors. However, two messages are missing when we dump all messages from that topic. So I just want to make sure this part of kafka-python
has test coverage to eliminate it from potential root causes.