Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14388

NPE When Retrieving StateStore with new Processor API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0, 3.3.1
    • 3.4.0, 3.3.2
    • streams
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              bbejeck Bill Bejeck
              bbejeck Bill Bejeck
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: