Skip to content

Gracefully react to UNKNOWN_TOPIC_OR_PARTITION #696

@skliche

Description

@skliche

Hi Spring Kafka team,

I was wondering if there is any way to react programmatically to the situation where a topic is not existing in kafka after creating a ConcurrentMessageListenerContainer. Looking through the code and documentation I did not find anything useful, so I hope you can help me out. Thanks in #advance.

The warning we see comes only from org.apache.kafka.clients.NetworkClient:

org.apache.kafka.clients.NetworkClient   : [Consumer clientId=domain-server-test-platform-data-events_90-1, groupId=domain-server_test-platform-data-events] Error while fetching metadata with correlation id {test-platform-data-events=UNKNOWN_TOPIC_OR_PARTITION} : {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions