Skip to content

feat: Support Kafka 4 in EmbeddedKafkaSystem - #7

Merged
toronik merged 1 commit into
mainfrom
feature/kafka-4
Aug 11, 2026
Merged

toronik merged 1 commit into
mainfrom
feature/kafka-4

Conversation

@MetallFoX

Copy link
Copy Markdown
Collaborator

No description provided.

spring-kafka-test 4.1 dropped EmbeddedKafkaZKBroker, so the convenience constructor
builds EmbeddedKafkaKraftBroker; kotlin 2.2.20 because Spring 7 metadata does not
compile on 2.0.

KRaft assigns ports through KafkaClusterTestKit and ignores kafkaPorts, so the config
reports brokersAsString instead of the port we asked for — clients used to get a dead
address and re-bootstrap forever. What cannot be honoured now fails: advertisedHost
rejects a KRaft broker, a fixed-port environment throws UnsupportedOperationException
pointing at env-mq-kafka.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@toronik
toronik merged commit 7c90d1c into main Aug 11, 2026
1 check passed
This was referenced Aug 12, 2026
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