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

remove unnecessary property setting statement in EmbeddedKafkaKraftBroker #2893

Conversation

NathanQingyangXu
Copy link
Contributor

if (this.brokerListProperty != null) {
    System.setProperty(this.brokerListProperty, getBrokersAsString());
}
System.setProperty(SPRING_EMBEDDED_KAFKA_BROKERS, getBrokersAsString());
System.setProperty(this.brokerListProperty, getBrokersAsString());

The last statement seems unnecessary and could lead to exception thrown if this.brokerListProperty is null

@artembilan
Copy link
Member

This is covered in the #2872.
But yeah... it is not clear when (and if) that one is going to be merged...

@artembilan artembilan added this to the 3.1.0 milestone Nov 13, 2023
@artembilan artembilan merged commit f768874 into spring-projects:main Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants