[
https://issues.apache.org/jira/browse/KAFKA-7833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias J. Sax resolved KAFKA-7833.
------------------------------------
Fix Version/s: 2.6.0
Resolution: Fixed
> StreamsBuilder should throw an exception if addGlobalStore and addStateStore
> is called for the same store builder
> -----------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-7833
> URL: https://issues.apache.org/jira/browse/KAFKA-7833
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Affects Versions: 2.1.0
> Reporter: Sam Lendle
> Assignee: Rob Meng
> Priority: Major
> Labels: newbie
> Fix For: 2.6.0
>
>
> {{StoreBuilder<KeyValueStore<String, String>> storeBuilder =}}
> {{ Stores.keyValueStoreBuilder(Stores.inMemoryKeyValueStore("global-store"),
> null, null);}}
> {{ builder.addGlobalStore(}}
> {{ storeBuilder,}}
> {{ "global-topic",}}
> {{ Consumed.with(null, null),}}
> {{ new KTableSource(storeBuilder.name())}}
> {{ );}}
> {{builder.addStateStore(storeBuilder); }}
> {{builder.build();}}
>
>
> Does not throw an exception.
>
> cc [~mjsax]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)