[ https://issues.apache.org/jira/browse/KAFKA-6894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Yokota updated KAFKA-6894: --------------------------------- Description: I was trying to access a store from a {{GlobalKTable}} in {{KStream.transform()}}, but I got the following error: {code} 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) {code} I have submitted a PR to improve the error message. was: I was trying to access a store from a {{GlobalKTable}} in {{KStream.transform()}}, but I got the following error: {code} 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) {code} I was able to make a change to {{InternalTopologyBuilder.connectProcessorAndState}} to allow me to access the global store from {{KStream.transform()}}. I will submit a PR for review. Summary: Improve error message when connecting processor with a global store (was: Cannot access GlobalKTable store from KStream.transform()) > Improve error message when connecting processor with a global store > ------------------------------------------------------------------- > > Key: KAFKA-6894 > URL: https://issues.apache.org/jira/browse/KAFKA-6894 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 1.1.0 > Reporter: Robert Yokota > Assignee: Robert Yokota > Priority: Minor > > I was trying to access a store from a {{GlobalKTable}} in > {{KStream.transform()}}, but I got the following error: > {code} > 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) > {code} > I have submitted a PR to improve the error message. -- This message was sent by Atlassian JIRA (v7.6.3#76005)