You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have group of consumers that on startup connect to kafka and infinite consume to messages. And I've encountered a problem that when the address of the kafka changes, the consumers don't get an error, just an infinite error logging. Since the Kafka address is taken from environment variables and I have an automatic reboot if an error occurs, it would be great if the consumer would raise an error
consumer = AIOKafkaConsumer(
*kafka_consumer_settings.topics
bootstrap_servers=kafka_consumer_settings.bootstrap_servers,
group_id=kafka_consumer_settings.group_id
)
try:
async for msg in consumer:
# Some message processing
finally:
await consumer.stop() # <--- it is not executed in case of 'Unable connect to node with id: X: [Errno 111]: Connection refused'
Hi, I have group of consumers that on startup connect to kafka and infinite consume to messages. And I've encountered a problem that when the address of the kafka changes, the consumers don't get an error, just an infinite error logging. Since the Kafka address is taken from environment variables and I have an automatic reboot if an error occurs, it would be great if the consumer would raise an error
I found it in source code:
aiokafka/aiokafka/client.py
Lines 475 to 481 in 256ce17
Do I understand correctly that the error is not triggered only when the consumer is in a group?
The text was updated successfully, but these errors were encountered: