Switch to single topic for same intervals in Spring Kafka retry config

See gh-34504
This commit is contained in:
Abhijeet Mishra
2023-03-07 17:29:49 +05:30
committed by Scott Frederick
parent 74e263e9e2
commit 4abf6f95ae

View File

@@ -162,7 +162,7 @@ public class KafkaAutoConfiguration {
KafkaProperties.Retry.Topic retryTopic = this.properties.getRetry().getTopic();
RetryTopicConfigurationBuilder builder = RetryTopicConfigurationBuilder.newInstance()
.maxAttempts(retryTopic.getAttempts())
.useSingleTopicForFixedDelays()
.useSingleTopicForSameIntervals()
.suffixTopicsWithIndexValues()
.doNotAutoCreateRetryTopics();
setBackOffPolicy(builder, retryTopic);