Skip to content
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

Fake api_versions for old brokers, rename to ApiVersionsRequest, and handle error decoding #2494

Merged
merged 5 commits into from
Feb 25, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Feb 25, 2025

Updates api_version handling so that versions are normalized against the list in kafka.protocol.broker_api_verisons, which includes copies of api_versions_response data from all brokers 0.10+ and synthetic responses for earlier brokers based on expected api availability. The broker_api_versions data is also used to provide api_versions data to the client when api_version is passed as configuration to avoid check_version() api calls.

Also renames ApiVersionRequest => ApiVersionsRequest and moves from kafka.protocol.admin => kafka.protocol.api_versions .

@dpkp dpkp force-pushed the dpkp/api-versions branch from 64bf2f5 to 9f1fa84 Compare February 25, 2025 19:51
@dpkp dpkp merged commit b697808 into master Feb 25, 2025
16 checks passed
@dpkp dpkp deleted the dpkp/api-versions branch February 25, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant