Flink version is 1.81 The eaxmple is adapted according to TopSpeedWindowing DataStream<Tuple4<Integer, Integer, Double, Long>> topSpeeds = carData The size of each checkpoint will increase from 100k to 100m. Why is the size of each checkpoint increasing? In DeltaTrigger.java,I find clear method.In my understand, the size of every checkpoint should be equal @Override Has anyone encountered a similar problem?
Darling
Andrew D.Lin |
I think the size of the checkpoint strongly depends on the data you are feeding into this function. Depending on the actual values, it might be that you never fire the window. Please verify what carData actually returns. Cheers, Till On Mon, Jul 29, 2019 at 11:09 AM 陈Darling <[hidden email]> wrote:
|
Thanks Rohrmann. Your answer inspired me. CountWindow defaults to using CountTrigger, but I set the trigger again. Parallelism is 1 .trigger(DeltaTrigger.of(50,deltaFunction,stateSerializer) Through testing,I found that the data is generated much faster than tigger and countSize,slideSize is 300000, DeltaTrigger threhold is 50. The size of CountWindow is bigger than trigger size. will it be caused by this reason?
Darling
Andrew D.Lin
|
In reply to this post by Till Rohrmann
Thanks Rohrmann. Your answer inspired me. CountWindow defaults to using CountTrigger, but I set the trigger again. Parallelism is 1 .trigger(DeltaTrigger.of(50,deltaFunction,stateSerializer) Through testing,I found that the data is generated much faster than tigger and countSize,slideSize is 300000, DeltaTrigger threhold is 50. The size of CountWindow is bigger than trigger size. will it be caused by this reason?
Darling
Andrew D.Lin
|
In reply to this post by 陈Darling
Hi Andrew From Flink doc[1], there is "Flink guarantees removal only for time-based windows and not for other types, e.g. global windows (see Window Assigners). ", Seems the state of the fired window wouldn't be cleared for a count window, you can verify this to see each result of your trigger is what value of `TriggerResult`. 陈Darling <[hidden email]> 于2019年7月30日周二 下午7:20写道:
|
Free forum by Nabble | Edit this page |