-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2.1.0 segfaults when subscribing to non-existent topic #1547
Comments
Using
|
Hello Federico, thanks. I'm aware of the issue. Have done a fix in the .NET client but I'm going to do it for librdkafka too. |
Same issue here, upgrading to 2.1.0 from 1.6.0. Any update on the fix? |
Yes, we've merged the fix here and are planning a maintenance release soon. |
This is still broken in confluent-kafka-python 2.1.1. |
Version 2.1.1 of confluent-kafka-python still suffers from a segfault bug (see confluentinc/confluent-kafka-python#1547).
Version 2.1.1 of confluent-kafka-python still suffers from a segfault bug (see confluentinc/confluent-kafka-python#1547).
Version 2.1.1 of confluent-kafka-python still suffers from a segfault bug. See confluentinc/confluent-kafka-python#1547.
Version 2.1.1 of confluent-kafka-python still suffers from a segfault bug. See confluentinc/confluent-kafka-python#1547.
@lpsinger are you sure? I've just tried with a non existing topic and it gives
|
We have a lightweight client library that wraps confluent-kaka-python and adds the configuration presets for our Kafka cluster: https://github.com/nasa-gcn/gcn-kafka-python It's segfaulting with unknown topics. So it might be something with confluent-kafka-python 2.1.1 plus unknown topics plus OpenID Connect. |
To test, go to https://gcn.nasa.gov, click "Start streaming GCN Notices", and follow the instructions. |
@lpsinger Thanks for that, I've installed and reproduced. The error happens in a different place than the initial one for a fix we did to the consume batch in 2.1.0. It happens with the |
I confirm that our code is working with version 2.1.1: our tests are green |
confluent-kafka 2.1.0 and 2.1.1 segfault when connecting to GCN. See confluentinc/confluent-kafka-python#1547.
When I run the test suite on version 2.1.1, one of the tests seems to segfault, see gist. The same happens, when I upgrade both librdkafka and this package to 2.2.0. It seems like the same issue. |
@milibopp It doesn't seem the same issue, in that test |
I am facing the similar issue in the current package version v2.2.0 in python 3.10. |
I still see similar issue even in version >= 2.0.2 when using SSL, more details in ticket: #1690 |
Description
Since confluent-kafka 2.1.0, subscribing to a non-existent topic causes python to segfault.
How to reproduce
Using the files in this gist, run docker compose, then run script
test.py
The first run will be successful. The second run will log
Segmentation fault (core dumped)
With confluent-kafka 2.0.2,
poll
returns a message with valueb'Subscribed topic not available: test-cf67de5e-e79e-48f7-9300-763fb5b8bc05: Broker: Unknown topic or partition'
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
): ('2.1.0', 33619968) ('2.1.0', 33620223){...}
: in the gist'debug': '..'
as necessary)The text was updated successfully, but these errors were encountered: