You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Bill Bejeck (Jira)" <ji...@apache.org> on 2023/01/09 15:53:00 UTC
[jira] [Commented] (KAFKA-14609) Kafka Streams Processor API cannot use state stores
[ https://issues.apache.org/jira/browse/KAFKA-14609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656166#comment-17656166 ]
Bill Bejeck commented on KAFKA-14609:
-------------------------------------
Hi [~philipp94831]
Thanks for reporting this issue. I believe it's been fixed with https://issues.apache.org/jira/browse/KAFKA-14388.
You could pull down either the 3.4.0 branch or 3.3.2 and build from source and test it. For now, I'm going to mark this as fixed.
> 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
> Priority: Major
>
> 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)