Hi everyone, I’ve been working on Watermark-relate...
# troubleshooting
s
Hi everyone, I’ve been working on Watermark-related features in Flink and was analyzing the source code behavior. While going through the implementation, I observed the following behavior regarding the WatermarkGenerator in `mainOutput`: • I am using ProgressiveTimestampsAndWatermarks. • In the flow of processing elements, the onEvent method of the
WatermarkGenerator
for
mainOutput
is never called:
Copy code
@Override
public void onEvent(T event, long eventTimestamp, WatermarkOutput output) {
    maxTimestamp = Math.max(maxTimestamp, eventTimestamp);
}
• As a result,
maxTimestamp
never updates, making it seem like the
WatermarkGenerator
in
mainOutput
is effectively unused. I do see watermark updates happening for split output, but for
mainOutput
, there doesn’t seem to be any invocation of
onEvent
. Flink version: 1.17 Is my understanding correct that the
WatermarkGenerator
in
mainOutput
is never actually used? Is there any other flow in which the
mainOutput
watermark gets updated?