-
Notifications
You must be signed in to change notification settings - Fork 11
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
ValueError: Invalid file descriptor: -1 when building KafkaAdminClient #177
Comments
I'm surprised this isn't picked up in the integration tests. If you can put together a reproducible example for me, that would be appreciated! |
Hi @wbarnha, I work with @etripier in the same company. Below is how I reproduce the issue in a debian virtual machine.
First, generate needed CA and server side certificate.
Then, put below config inside
and restart kafka Now, test the connection. With
|
Hi @wbarnha I printed some logs, and find in this case, the
This logic has a problem when
BTW, with below change,
Also, I see there is function gen_ssl_resources, but it is not used in any test. So I assume tests never cover SSL connections? I am happy to help. I can raise a PR to fix this issue and add integration tests for SSL connection as well. |
Hey, thanks for looking into this further! If you can open up a PR with the necessary changes (and tests hopefully), I'll get it merged in and released ASAP! Sorry for the inconvenience! I'm glad we're catching these mistakes before they're merged into |
Yeah, I'm happy to help. But now it's the weekend. I can do it next week if you can wait. |
Closed in #178. |
We started seeing this error after upgrading to
2.1.0
. We think it's caused by https://github.com/wbarnha/kafka-python-ng/pull/156/files. We'll put a repro case together later if we can, but in the meantime - do you have an idea of what could be going wrong?The text was updated successfully, but these errors were encountered: