Skip to content

Incorrect retry topic suffix #2654

Closed
@Desire456

Description

@Desire456

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

2.8.2

Describe the bug

Incorrect retry topic suffix (retry-5000) when attempts is equal to 2 in @RetryableTopic and fixedDelayStrategy=SINGLE_TOPIC

To Reproduce

@KafkaListener(
        id = "someId",
        topics = [GREETING_TOPIC],
        groupId = "groupId",
        autoStartup = "true"
    )
@RetryableTopic(
        backoff = Backoff(delay = 5000),
        attempts = "2",
        autoCreateTopics = "false",
        fixedDelayTopicStrategy = FixedDelayStrategy.SINGLE_TOPIC
    )

Expected behavior

Retry topic suffix = -retry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions