conduktor.io ↗

Kafka Exception StreamsNotStartedException

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

Indicates that Kafka Streams is in state State CREATED and thus state stores cannot be queries yet. To query state stores, it's required to first start Kafka Streams via start(). You can retry to query the state after the state transitioned to State RUNNING.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.streams.errors.StreamsNotStartedException: KafkaStreams has not been started, you can retry after calling start() at org.apache.kafka.streams.KafkaStreams.validateIsRunningOrRebalancing(KafkaStreams.java:1455) at org.apache.kafka.streams.KafkaStreams.store(KafkaStreams.java:1798) at com.example.QueryService.lookup(QueryService.java:40)

Diagnostic Commands

# Gate interactive queries on lifecycle: only call store(...) once KafkaStreams.state() is RUNNING (register a StateListener); return HTTP 503 while CREATED, then retry after start().

Related

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

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