Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ public final CompletionStage<Void> onMessageAsync(M message, MessageCollector co
.toArray(CompletableFuture[]::new));
});

return result.thenAccept(x -> {
WatermarkFunction watermarkFn = getOperatorSpec().getWatermarkFn();
if (watermarkFn != null) {
// check whether there is new watermark emitted from the user function
Long outputWm = watermarkFn.getOutputWatermark();
propagateWatermark(outputWm, collector, coordinator);
}
});
WatermarkFunction watermarkFn = getOperatorSpec().getWatermarkFn();
if (watermarkFn != null) {
// check whether there is new watermark emitted from the user function
Long outputWm = watermarkFn.getOutputWatermark();
return result.thenCompose(ignored -> propagateWatermark(outputWm, collector, coordinator));
}

return result;
}

/**
Expand Down