Skip to content

Docs incorrect on bootstrapping non blocking retries. #4035

@MaheshAravindV

Description

@MaheshAravindV

In what version(s) of Spring for Apache Kafka are you seeing this issue?

For example:

3.3.3

Describe the bug

As per the docs, a Configuration class needs to be annotated with @EnableKafkaRetryTopic or the RetryTopicConfigurationSupport class should be extended in a @configuration class, and the appropriate methods overridden. Ref. However, the retry and dlt topics and the necessary consumers are created even without doing this if I add @RetryableTopic to a @KafkaListener.

To Reproduce

  • Create a KafkaListener with RetryableTopic annotation.
  • Do not add the @EnableKafkaRetryTopic to a configuration bean
  • Monitor logs to see dlt and retry topics and consumers being created and the partitions being assigned as well.

Expected behavior

The docs should be updated if @RetryableTopic internally enables kafka retry topic as this is misleading.

Sample

Not adding a sample assuming this behavior is known but docs have not been updated. If required, will add a sample.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions