Closed
Description
Related issue : #1222 (comment)
Description
When client is polling for new messages, the following errors might happens.
FAIL [rdkafka#consumer-1] [thrd:localhost:9092/bootstrap]: localhost:9092/bootstrap: Connect to ipv6#[::1]:9092 failed: Connection refused (after 0ms in state CONNECT)
FAIL [rdkafka#consumer-3] [thrd:sasl_ssl://foo/3]: foo/3: 1 request(s) timed out: disconnect (after 154583ms in state UP, 1 identical error(s) suppressed)“
I am trying to silence these errors or handle in a different way.
How to reproduce
Use the below script to reproduce the error.
https://github.com/ChillarAnand/avilpage.com/blob/master/scripts/confluent_kafka_consumer.py
To avoid printing these messages, the context manager in the scripting can be used for now.
Checklist
Please provide the following information:
- confluent-kafka-python and librdkafka version (
confluent_kafka.version()
andconfluent_kafka.libversion()
): - Apache Kafka broker version:
- Client configuration:
{...}
- Operating system: macOS
- Provide client logs (with
'debug': '..'
as necessary) - Provide broker log excerpts - None
- Critical issue - No
>>> import confluent_kafka
>>> confluent_kafka.version()
('1.7.0', 17235968)
>>> confluent_kafka.libversion()
('1.9.2', 17367807)