简体   繁体   English

Flink 定时器时间戳

[英]Flink Timer Timestamp

Do timers in Flink get fired if they are set to a timestamp in the past?如果将 Flink 中的计时器设置为过去的时间戳,它们会被触发吗? Since the current timestamp is greater than that of the timer service, would it get fired immediately or never get fired?由于当前时间戳大于计时器服务的时间戳,它会立即被触发还是永远不会被触发?

Also, we are trying to sort/order input events based on the event time by collecting/buffering them in a processing time based tumbling window just so we don't have to drop late events.此外,我们正在尝试根据事件时间对输入事件进行排序/排序,方法是在基于处理时间的翻滚 window 中收集/缓冲它们,这样我们就不必丢弃迟到的事件。 Are there are any better solutions to address this?有没有更好的解决方案来解决这个问题?

Timers set to a timestamp in the past get triggered ASAP.设置为过去时间戳的计时器会尽快触发。

For sorting, see How to sort an out-of-order event time stream using Flink and How to sort a stream by event time using Flink SQL .有关排序,请参阅如何使用 Flink 对乱序事件时间 stream 进行排序和如何使用 Flink SQL 按事件时间对 stream 进行排序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM