You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by pn...@apache.org on 2019/06/19 14:09:01 UTC
[flink] branch master updated: [hotfix][streaming] Report correct
value of currentProcessingTime in the exception
This is an automated email from the ASF dual-hosted git repository.
pnowojski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d79a377 [hotfix][streaming] Report correct value of currentProcessingTime in the exception
d79a377 is described below
commit d79a3771192363f5cf6643741bfd50b4fab3a4e4
Author: Piotr Nowojski <pi...@gmail.com>
AuthorDate: Mon Jun 17 13:09:43 2019 +0200
[hotfix][streaming] Report correct value of currentProcessingTime in the exception
Previously the actual and reported values were always of by small margin.
---
.../streaming/runtime/operators/windowing/WindowOperator.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java
index 1c79f68..08aaf04 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java
@@ -319,11 +319,14 @@ public class WindowOperator<K, IN, ACC, OUT, W extends Window>
"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 " +
+ } else if (!windowAssigner.isEventTime()) {
+ long currentProcessingTime = internalTimerService.currentProcessingTime();
+ if (mergeResult.maxTimestamp() <= currentProcessingTime) {
+ throw new UnsupportedOperationException("The end timestamp of a " +
"processing-time window cannot become earlier than the current processing time " +
- "by merging. Current processing time: " + internalTimerService.currentProcessingTime() +
+ "by merging. Current processing time: " + currentProcessingTime +
" window: " + mergeResult);
+ }
}
triggerContext.key = key;