You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Philipp Schirmer (Jira)" <ji...@apache.org> on 2023/01/09 14:31:00 UTC

[jira] [Created] (KAFKA-14609) Kafka Streams Processor API cannot use state stores

Philipp Schirmer created KAFKA-14609:
----------------------------------------

             Summary: Kafka Streams Processor API cannot use state stores
                 Key: KAFKA-14609
                 URL: https://issues.apache.org/jira/browse/KAFKA-14609
             Project: Kafka
          Issue Type: Bug
          Components: streams
    Affects Versions: 3.3.0
            Reporter: Philipp Schirmer


The recently introduced Kafka Streams Processor API (since 3.3, https://issues.apache.org/jira/browse/KAFKA-13654) likely has a bug with regards to using state stores. The [getStateStore|https://javadoc.io/static/org.apache.kafka/kafka-streams/3.3.1/org/apache/kafka/streams/processor/api/ProcessingContext.html#getStateStore-java.lang.String-] method returns null, even though the store has been registered according to the docs. The old transformer API still works. I created a small project that demonstrates the behavior. It uses both methods to register a store for the transformer, as well as the processor API: https://github.com/bakdata/kafka-streams-state-store-demo/blob/main/src/test/java/com/bakdata/kafka/StreamsStateStoreTest.java



--
This message was sent by Atlassian Jira
(v8.20.10#820010)