Cleaned up example
authorKai Moritz <kai@juplo.de>
Mon, 8 Jul 2024 16:36:42 +0000 (18:36 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 17 Jul 2024 05:58:26 +0000 (07:58 +0200)
src/test/java/de/juplo/kafka/wordcount/counter/AggregationTopologyTest.java

index 13ab0ae..58a858a 100644 (file)
@@ -36,7 +36,6 @@ public class AggregationTopologyTest
         .peek((k,v) -> log.info("peek-0 -- {} = {}", k, v))
         .groupByKey()
         .windowedBy(WINDOWS)
-        .emitStrategy(EmitStrategy.onWindowUpdate())
         .reduce((aggregate, value) -> aggregate + "-" + value)
         .toStream((k,v) -> k.toString())
         .peek((k,v) -> log.info("peek-1 -- {} = {}", k, v))
@@ -48,7 +47,6 @@ public class AggregationTopologyTest
     Properties properties = new Properties();
     properties.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.StringSerde.class);
     properties.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.StringSerde.class);
-    properties.put(StreamsConfig.InternalConfig.EMIT_INTERVAL_MS_KSTREAMS_OUTER_JOIN_SPURIOUS_RESULTS_FIX, 0l);
 
     TopologyTestDriver testDriver = new TopologyTestDriver(topology, properties);