Github user aljoscha commented on a diff in the pull request:
https://github.com/apache/flink/pull/3587#discussion_r107445987
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java
---
@@ -122,6 +121,20 @@ public void processElement(StreamRecord<IN> element)
throws Exception {
public void merge(W
mergeResult,
Collection<W> mergedWindows, W stateWindowResult,
Collection<W> mergedStateWindows) throws Exception {
+
+ if
((windowAssigner.isEventTime() && mergeResult.maxTimestamp() <=
internalTimerService.currentWatermark())) {
+ throw
new UnsupportedOperationException("The end timestamp of an " +
+
"event-time window cannot become earlier than the current watermark " +
+
"by merging. Current watermark: " +
internalTimerService.currentWatermark() +
+
" window: " + mergeResult);
+ } else if
(!windowAssigner.isEventTime() && mergeResult.maxTimestamp() <=
internalTimerService.currentProcessingTime()) {
+ throw
new UnsupportedOperationException("The end timestamp of a " +
+
"processing-time window cannot become earlier than the current
procesing time" +
+
"by merging. Current processing time: " +
internalTimerService.currentProcessingTime() +
+
" window: " + mergeResult);
+
--- End diff --
Fixing
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---