Docs say defaultRetryTopicKafkaTemplate
is the default template bean name. @RetryableTopic
javadoc says retryTopicDefaultKafkaTemplate
#3514
Labels
for: backport-to-3.1.x
for: backport-to-3.2.x
ideal-for-user-contribution
An issue that would ideal for a user to get started with contributing.
type: bug
Milestone
In what version(s) of Spring for Apache Kafka are you seeing this issue?
Between (at least) 2.9.13 and 3.2.4
Describe the bug
The documentation states that the default
KafkaTemplate
bean for publishing retries / DLT through@RetryableTopic
isdefaultRetryTopicKafkaTemplate
. The annotation states, and at least some tests use this, that it should beretryTopicDefaultKafkaTemplate
. On the other hand, some tests and code refer todefaultRetryTopicKafkaTemplate
throughRetryTopicBeanNames.DEFAULT_KAFKA_TEMPLATE_BEAN_NAME
I don't know which one to use at this point. Though I'm working around this by specifying a specific values for the
kafkaTemplate
parameter on the@RetryableTopic
annotation.To Reproduce
@RetryableTopic
retryTopicDefaultKafkaTemplate
@RetryableTopic
publishing.To be honest, I'm having trouble determining which bean its using.
Expected behavior
I would expect consistency in the javadoc and the docs on the Spring Kafka website to be consistent. At this point, I don't know which one is actually used in the code.
Sample
If necessary, I will work on an isolated example in a new GitHub repository. Though, i'm hoping this issue/concern is straightforward enough, with the links above, that it's not necessary. Still, I understand if it is.
The text was updated successfully, but these errors were encountered: