dpkp / kafka-python

Python client for Apache Kafka
http://kafka-python.readthedocs.io/
Apache License 2.0
5.6k stars 1.41k forks source link

poll never stops with incorrect password for SCRAM-SHA-256 #2238

Open AleksandrIakhnev opened 3 years ago

AleksandrIakhnev commented 3 years ago

When using SCRAM-SHA-256 and the password is incorrect, then poll hangs ignoring provided timeouts.

A ConnectionError exception raised at https://github.com/dpkp/kafka-python/blame/master/kafka/conn.py#L692 and retried for an infinite time at https://github.com/dpkp/kafka-python/blob/master/kafka/client_async.py#L575

swenzel commented 2 years ago

Sorry, I can't reproduce this. Is it still happening? Which Java + Kafka version are you using? How many Kafka Brokers? And which Python + kafka-python version?