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

StreamsBuilder should throw an exception if addGlobalStore and addStateStore is called for the same store builder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.6.0
    • Component/s: streams
    • Labels:

      Description

      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 Matthias J. Sax

        Attachments

          Activity

            People

            • Assignee:
              chebbyChef Rob Meng
              Reporter:
              slendle Sam Lendle
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: