Kafka Streams 2.1.1 class cast while flushing timed aggregation to store

后端 未结 2 2005
独厮守ぢ
独厮守ぢ 2021-01-16 10:21

I\'m trying to use kafka streams to perform a windowed aggregation and emit the result only after a certain session window is closed. To achieve this I\'m using the suppress

2条回答
  •  余生分开走
    2021-01-16 11:20

    To make this work with TopologyTestDriver, you would need to advance the clock time, which it seems has no effect on the Suppress step. A workaround is to allow your test to override the Suppress config with a setting like this:

    Suppressed.untilTimeLimit(Duration.ZERO, BufferConfig.unbounded()) 
    

提交回复
热议问题