Skip to content

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.

2 participants