conduktor.io ↗

Kafka Exception UnknownStateStoreException

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

Indicates that the state store being queried is unknown, i.e., the state store does either not exist in your topology or it is not queryable.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.streams.errors.UnknownStateStoreException: Cannot get state store my-counts-store because no such store is registered in the topology. at org.apache.kafka.streams.state.internals.QueryableStoreProvider.getStore(QueryableStoreProvider.java:65) at org.apache.kafka.streams.KafkaStreams.store(KafkaStreams.java:1903) at com.example.QueryService.count(QueryService.java:58) at com.example.QueryService.lambda$queryEndpoint$0(QueryService.java:41)

Diagnostic Commands

System.out.println(builder.build().describe()); # confirm the store appears under a Processor's 'Stores:' line with the exact name you query curl http://localhost:8080/actuator/health # (Spring) ensure the Streams binding is up before issuing interactive queries

Related

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

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