flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Brelloch <jb.bc....@gmail.com>
Subject Generate timestamps in front of event for event time windows
Date Wed, 03 Aug 2016 18:29:36 GMT
Hey guys,

I am trying to use event time along with a custom window to capture a
subset of events.  The problem I am running into is that it seems that
event that generates the timestamp/watermark arrives in the window before
the onEventTime() call is made that closes the window.  Example:

Window is supposed to capture 5 minutes of events after first event arrives
Event 1: timestamp 12:01 - registers event timer for 12:06
Event 2: timestamp 12:03
Event 3: timestamp 12:20 - fires and purges window

I get all three events in the window, instead of just the two the are
really within the 5 minute window.

Is there someway to force the timestamp to arrive in the window before the
event that generated it?

Thanks!

-- 
*Jason Brelloch* | Product Developer
3405 Piedmont Rd. NE, Suite 325, Atlanta, GA 30305
<http://www.bettercloud.com/>
Subscribe to the BetterCloud Monitor
<https://www.bettercloud.com/monitor?utm_source=bettercloud_email&utm_medium=email_signature&utm_campaign=monitor_launch>
-
Get IT delivered to your inbox

Mime
View raw message