Skip to content

Conversation

@ifiok
Copy link
Contributor

@ifiok ifiok commented Aug 27, 2025

Kafka Endpoint improvements, dependency update, support for Kafka 4.0+

Please do not open a pull request without first filing an issue and/or discussing the feature directly with the project maintainer.

Describe your changes

Upgraded the Sarama package to the latest 1.46.0 that enables client API selection from the broker version. This handles backward compatibility and enables the correct Api version selection for 4.0+

Issue number and link

777

ifiok and others added 3 commits August 27, 2025 11:49
Update module dependencies to refresh transitive versions and remove
unused indirect entries.

- Bump github.com/IBM/sarama from v1.45.2 to v1.46.0 to pick up fixes
  and improvements in the Kafka client library.
Remove the hard-coded sarama client version (V0_10_0_0) which was
previously required to address a backward-incompatibility. Sarama
now derives the protocol version from the broker in recent releases,
so forcing the old version causes version negotiation failures with
modern Kafka brokers (e.g., Kafka 4.0+).

This change re-enables sarama's automatic version selection to avoid
breaking the connection and to improve compatibility with current
broker releases. Also add a clarifying comment about the rationale.
@tidwall tidwall merged commit 40f58b0 into tidwall:master Aug 27, 2025
1 check passed
@tidwall
Copy link
Owner

tidwall commented Aug 27, 2025

LGTM. Thanks! 🙏

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.

2 participants