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

Improve error message when connecting processor with a global store

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 2.0.0
    • streams
    • None

    Description

      I was trying to access a store from a GlobalKTable in KStream.transform(), but I got the following error:

      org.apache.kafka.streams.errors.TopologyException: Invalid topology: StateStore globalStore is not added yet.
      	at org.apache.kafka.streams.processor.internals.InternalTopologyBuilder.connectProcessorAndStateStore(InternalTopologyBuilder.java:716)
      	at org.apache.kafka.streams.processor.internals.InternalTopologyBuilder.connectProcessorAndStateStores(InternalTopologyBuilder.java:615)
      	at org.apache.kafka.streams.kstream.internals.KStreamImpl.transform(KStreamImpl.java:521)
      

      I have submitted a PR to improve the error message.

      Attachments

        Issue Links

          Activity

            People

              rayokota Robert Yokota
              rayokota Robert Yokota
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: