GH-4170 : Add KafkaListener Validation (Allow @Topic or @TopicPartition)#4172
Conversation
355acd1 to
9832f77
Compare
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
9832f77 to
01db10f
Compare
|
@moonyoungCHAE There are build failures on the PR - Are you able to see this? https://github.com/spring-projects/spring-kafka/actions/runs/19523082207/job/55890231401?pr=4172. Can you also trace, what happens to the retryable topic when we only provide Thanks! |
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
2602e9d to
3d90d6a
Compare
|
@sobychacko I confirmed that when only @topicpartition is provided, it still creates a destination for retry. The retry topic is determined here, which has not changed. I traced the behavior, and the results are below. @RetryableTopic(attempts = "3", backoff = @Backoff(delay = 1000, multiplier = 2), topicSuffixingStrategy = TopicSuffixingStrategy.SUFFIX_WITH_INDEX_VALUE)
@KafkaListener(id = "foo",
clientIdPrefix = "myClientId",
topicPartitions =
{
@TopicPartition(topic = "topic1-2", partitions = {"0"}),
@TopicPartition(topic = "topic2-2", partitions = {"0"})
}
)
public void listen(String data) {
}Thanks! |
fixes #4170