Skip to content

Add KafkaClient.api_version(operation) for best available from api_versions #2495

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

Merged
merged 9 commits into from
Feb 26, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Feb 25, 2025

Adapts _matching_api_version from admin client, adding an optional max_version kwarg to avoid breaking code if/when new protocol definitions are added without full code support. Use client.api_version(operation, max_version=x) to select api versions in consumer/producer/client code.

@dpkp dpkp force-pushed the dpkp/matching-api-version branch from 8569f88 to 8a2c91e Compare February 25, 2025 20:52
@dpkp dpkp merged commit 5a3d95d into master Feb 26, 2025
16 checks passed
@dpkp dpkp deleted the dpkp/matching-api-version branch February 26, 2025 18:12
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