conduktor.io ↗

Kafka Exception TopicExistsException

org.apache.kafka.common.errors.TopicExistsException
Non-retriable Admin

TopicExistsException is a Kafka exception (org.apache.kafka.common.errors.TopicExistsException).

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.TopicExistsException: Topic with this name already exists.

Diagnostic Commands

# Describe topic partitions, leaders, and ISR kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic <topic-name> # List topics and search for the target topic kafka-topics.sh --bootstrap-server localhost:9092 --list | grep <topic-name>

Related

Protocol error: TOPIC_ALREADY_EXISTS (code 36)

Related Admin exceptions: InvalidConfigurationException · InvalidPartitionsException · InvalidReplicationFactorException · InvalidTopicException · PolicyViolationException · ThrottlingQuotaExceededException · UnsupportedVersionException

Hitting TopicExistsException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.