Is there a way to tell how late a late-arriving ev...
# troubleshooting
d
Is there a way to tell how late a late-arriving event is? (I'm looking at a side output stream of late arriving data in a window operation, and trying to determine some stats about avg/p99/etc lateness)
j
d
As Jeremy mentioned, event time lag (current time minus event time) is a good thing to watch. But if you want to know by how much an event missed out on not being late, that would be current watermark minus event time — that’s how much you should add to the bounded-out-of-orderness if you want that event to not be late.
d
how much you should add to the bounded-out-of-orderness if you want that event to not be late
exactly what I'm investigating - thanks @David Anderson! @Jeremy DeGroot - we don't use DataDog but that's a good lead, thanks!
will the currentWatermark() be available after a message has landed in the late-data side output? e.g. by applying a processfunction
Copy code
public void processElement(Foo foo, ProcessFunction<Foo, FooWithLateness>.Context ctx, Collector<FooWithLateness> out) throws Exception {
	 return new FooWithLateness(foo, foo.timestamp - ctx.timerService().currentWatermark());
}
more specifically, is it possible the
currentWatermark()
has moved before this process function is called for an event in a sideoutput stream?