pnowojski commented on code in PR #22134:
URL: https://github.com/apache/flink/pull/22134#discussion_r1129592490
##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/InternalTimerServiceImpl.java:
##########
@@ -296,7 +302,9 @@ public void advanceWatermark(long time) throws Exception {
InternalTimer<K, N> timer;
- while ((timer = eventTimeTimersQueue.peek()) != null &&
timer.getTimestamp() <= time) {
+ while ((timer = eventTimeTimersQueue.peek()) != null
+ && timer.getTimestamp() <= time
+ && !cancellationContext.isCancelled()) {
Review Comment:
I would add the same check 10 lines above in the `onProcessingTimer()`
method (and a test for it)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]