confluentinc / confluent-kafka-python

Confluent's Kafka Python Client
http://docs.confluent.io/current/clients/confluent-kafka-python
Other
119 stars 895 forks source link

japronto request process hanging on producer.flush() #531

Closed jkdntc closed 3 years ago

jkdntc commented 5 years ago

Description

Source code here : https://github.com/jkdntc/LogReceiver

How to reproduce

make build

make run

curl http://localhost:8080/async

Checklist

Please provide the following information:

mhowlett commented 5 years ago

when I ran your program it did not hang in producer.flush. if you are running kafka in a docker image, perhaps you don't have networking set up correctly (check the advertised.listeners property)? does the sync method work when you uncomment KafkaProducer.put2Kafka? finally, you could paste client logs obtained when setting the config property debug to all and we can take a look at those.