-
Notifications
You must be signed in to change notification settings - Fork 614
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
KafkaTopicProvisioner incompatible with SpringBoot v3.4.0 #3050
Comments
Seems to be already implemented in b7f2f1b and included in 4.2.0-MC2. Can the rollout of this fix in particular be expedited please? |
Thanks for pointing me to the release candidate! As a big "THANKS", I'll point you to the available version: https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-stream/4.2.0-RC1 Although I use them via: <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2024.0.0-RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency> in my Just tried it, I can confirm it's working! |
Yes, it works for development purposes. But I will not be using release candidates in production. New versions of other libs in the Spring context already require Springboot 3.4.0, which means I basically have to roll back version updates and not update until this is fixed in a stable release. |
We do see same problem with Kafka, here is my kafka failure logs "log_message":org.springframework.messaging.MessagingException: 'org.springframework.integration.support.MessageBuilder org.springframework.integration.support.MessageBuilder.removeHeader(java.lang.String)' |
Describe the issue
The provisioning class
KafkaTopicProvisioner
inspringframework.cloud:spring-cloud-stream-binder-kafka-core
is incompatible with the current Springboot version 3.4.0.The
KafkaTopicProvisioner
class needs to call thecreateAdminClientProperties
method during construction. This calls a previously deprecated methodKafkaProperties::(buildAdminProperties)
with no arguments.In Springboot 3.4.0, the arg-less method was removed and replaced with new method signatures that expect a single
SslBundles
argument. Because of this,KafkaTopicProvisioner
is broken with Springboot 3.4.0.To Reproduce
Steps to reproduce the behavior:
org.springframework.cloud:spring-cloud-dependencies
with version 2023.0.4 or justspringframework.cloud:spring-cloud-stream-binder-kafka-core
with version 4.1.4Version of the framework
Springboot at version 3.4.0
springframework.cloud:spring-cloud-stream-binder-kafka-core
at version 4.1.4Expected behavior
The
KafkaTopicProvisioner
class should call the updated method signatures with default argumentnull
and optionally pass aSslBundles
value if configured.Additional context
See related issues 43300 39144 from the springboot project.
The text was updated successfully, but these errors were encountered: