conduktor.io ↗

Kafka Exception UnknownTopicIdException

org.apache.kafka.common.errors.UnknownTopicIdException
Retriable Broker

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

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.UnknownTopicIdException: This server does not host this topic ID.

Diagnostic Commands

# Describe topic partitions, leaders, and ISR kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic <topic-name> # Check KRaft metadata quorum status kafka-metadata-quorum.sh --bootstrap-server localhost:9092 describe --status | grep -E 'HighWatermark|Applied'

Related

Protocol error: UNKNOWN_TOPIC_ID (code 100)

Related Broker exceptions: CorruptRecordException · FencedLeaderEpochException · LeaderNotAvailableException · NetworkException · NotEnoughReplicasAfterAppendException · NotEnoughReplicasException · NotLeaderOrFollowerException · TimeoutException

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