conduktor.io ↗

Kafka Exception MissingSourceTopicException

org.apache.kafka.streams.errors.MissingSourceTopicException
Non-retriable Streams

MissingSourceTopicException is a Kafka client-side exception (org.apache.kafka.streams.errors.MissingSourceTopicException).

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.streams.errors.MissingSourceTopicException: One or more source topics were missing during rebalance at org.apache.kafka.streams.processor.internals.StreamsRebalanceListener.onAssignment(StreamsRebalanceListener.java:107) at org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.invokeOnAssignment(ConsumerCoordinator.java:284) at org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.onJoinComplete(ConsumerCoordinator.java:367) at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.joinGroupIfNeeded(AbstractCoordinator.java:449) at org.apache.kafka.streams.processor.internals.StreamThread.runOnce(StreamThread.java:740) (leader-side log: 'Source topic output-topic-2 is missing/unknown during rebalance ... Returning error INCOMPLETE_SOURCE_TOPIC_METADATA')

Diagnostic Commands

kafka-topics.sh --bootstrap-server <b>:9092 --list | grep <source-topic> # confirm the source topic actually exists on this cluster kafka-topics.sh --bootstrap-server <b>:9092 --create --topic <source-topic> --partitions <N> --replication-factor <R> # pre-create before starting Streams grep -i 'INCOMPLETE_SOURCE_TOPIC_METADATA\|missing/unknown during rebalance' streams.log # find which topic the leader flagged

Related

Related Streams exceptions: BrokerNotFoundException · InternalTopicsAlreadySetupException · InvalidStateStoreException · InvalidStateStorePartitionException · LockException · MisconfiguredInternalTopicException · MissingInternalTopicsException · ProcessorStateException

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