Description
Hi,
using python 3.7.1, kafka-python 1.4.4, kafka 2.1.0
I forgot to uncomment and set the actual ip for the kafka server in kafka's config/server.properties
(listeners
property), which leads to weird results while using kafka-python's producer.
I call send()
and then flush(50)
, then close(50)
I noticed that it takes 30 seconds (consistently) for flush
to return, with no error.
But no actual data is received by my broker (which is normal since the listener was incorrectly specified).
What is weird is that I get no exception, no error whatsoever from flush
or send
, even if I use a finite timeout. I suspect that 30 seconds is actually some kind of internal timeout (because mine is set to 50).
Bottom line: no data sent, but no error either in KafkaProducer
's send
/ flush
.
Thanks