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

GH-2239: Fix Boot AutoConfiguration #2343

Merged
merged 1 commit into from Jul 11, 2022

Conversation

garyrussell
Copy link
Contributor

See #2239

The previous commit removed the implicit bootstrap in favor of enforcing the
user to use the @EnableKafkaRretryTopic or explicitly extend
RetryTopicConfigurationSupport.

Unfortunately, this breaks Spring Boot because it can auto configure a
RetryTopicConfiguration bean, which means the infrastructure beans are required.

Fallback to late binding of the infrastructure beans if a RetryTopicConfiguration
bean is found in the application context.

Tested with a Boot app.

cherry-pick to main

See spring-projects#2239

The previous commit removed the implicit bootstrap in favor of enforcing the
user to use the `@EnableKafkaRretryTopic` or explicitly extend
`RetryTopicConfigurationSupport`.

Unfortunately, this breaks Spring Boot because it can auto configure a
`RetryTopicConfiguration` bean, which means the infrastructure beans are required.

Fallback to late binding of the infrastructure beans if a `RetryTopicConfiguration`
bean is found in the application context.

Tested with a Boot app.

**cherry-pick to main**
@artembilan
Copy link
Member

... and cherry-picked to main

@garyrussell garyrussell deleted the GH-2239 branch July 12, 2022 12:39
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.

None yet

2 participants