Skip to content

Using RKraft broker with GlobalEmbeddedKafkaTestExecutionListener #3241

Discussion options

You must be logged in to vote

Spring Boot auto-configuration for Apache Kafka relies on the KafkaProperties file.
The EmbeddedKafkaBroker implementation expose respective Spring Boot property on its start:

private String brokerListProperty = "spring.kafka.bootstrap-servers";
...
if (this.brokerListProperty != null) {
	System.setProperty(this.brokerListProperty, getBrokersAsString());
}

So, everything you talk about has to work out-of-the-box. But yeah, only against random ports populated by the KafkaClusterTestKit.
That's the limitation we have to deal with for now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@david-szalai-otpotthon
Comment options

Answer selected by david-szalai-otpotthon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants