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

See gh-34504
pull/34003/head
Abhijeet Mishra 2 years ago committed by Scott Frederick
parent 74e263e9e2
commit 4abf6f95ae

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

Loading…
Cancel
Save