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 2022/11/15 21:13:00 UTC

[jira] [Commented] (KAFKA-14388) NPE When Retrieving StateStore with new Processor API

    [ https://issues.apache.org/jira/browse/KAFKA-14388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634526#comment-17634526 ] 

Bill Bejeck commented on KAFKA-14388:
-------------------------------------

PR with details of the bug https://github.com/apache/kafka/pull/12861

> NPE When Retrieving StateStore with new Processor API
> -----------------------------------------------------
>
>                 Key: KAFKA-14388
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14388
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 3.3.0, 3.3.1
>            Reporter: Bill Bejeck
>            Assignee: Bill Bejeck
>            Priority: Major
>             Fix For: 3.4.0
>
>
> Using the new Processor API introduced with KIP-820 when adding a state store to the Processor when executing `context().getStore("store-name")` always returns `null` as the store is not in the `stores` `HashMap` in the `ProcessorStateManager`.  This occurs even when using the `ConnectedStoreProvider.stores()` method
> I've confirmed the store is associated with the processor by viewing the `Topology` description.   
> From some initial triage, it looks like the store is never registered.



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