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

Improve error message when connecting processor with a global store

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 2.0.0
    • Component/s: streams
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: