-
Notifications
You must be signed in to change notification settings - Fork 234
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
Update aiokafka
library to support higher client versions > 3
#1023
Comments
Hi @Ben621 My company is using aiokafka against AWS MSK 3.6.0 without issue. I think the code you highlight is just happening when you force the |
Hey @vmaurin Also I have checked in the GitHub action they are testing client "0.9.0.1" To "2.8.1" |
From the codebase, it sounds I guess then, this parameter is to force a specific version of the protocol, but it should not be used, as Kafka protocol is build for backward and forward compatibility (even today version of the broker probably still support clients in 0.11). So my advice is to let this parameter unset |
Hey @vmaurin In my case after before they upgrade from kafka 2.7 to kafka 3.5 i was able to connect with Unable to request metadata from "kafkaserver:9093": suddenly that work once after waiting 2 minutes for connecting and the So, when i set @vmaurin BTW, according to the code you can't get broker version higher than 2.6.0 |
Hi @Ben621, thank you for highlighting the problem. We need to add newer versions for the broker to the CI matrix. This will probably require reworking how we build the Docker images for them. It would be nice if somebody volunteers to do this part. |
Could you please provide a complete report with the traceback?
The method you're referring to looks weird to me. In my opinion, we should rather drop support for brokers <0.10.0 and rely solely on what |
I've been meaning to do this in https://github.com/wbarnha/kafka-python-ng for newer Kafka broker versions. If I get a working solution, I'll open a PR here as well. |
The current implementation of the aiokafka library within the Confluent platform only supports client versions under 3.0 for Python. There is an error reported in aiokafka/util.py that restricts compatibility.
Additionally, the Confluent platform's version interoperability matrix highlights this limitation.
We request extending compatibility to include higher client versions (e.g., 3.0 or above). This would allow users to leverage the latest features and bug fixes offered by newer aiokafka client releases.
The text was updated successfully, but these errors were encountered: