You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/06/08 21:58:10 UTC

[GitHub] [beam] lukecwik commented on a change in pull request #14968: [BEAM-12459] Ensure that we use the min element timestamp for Watch watermark if no explicit watermark is provided.

lukecwik commented on a change in pull request #14968:
URL: https://github.com/apache/beam/pull/14968#discussion_r647822323



##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Watch.java
##########
@@ -955,11 +961,15 @@ public ProcessContinuation process(
         return stop();
       }
 
-      if (BoundedWindow.TIMESTAMP_MAX_VALUE.equals(newResults.getWatermark())) {
+      if (BoundedWindow.TIMESTAMP_MAX_VALUE.equals(computedWatermark)) {
         LOG.info("{} - will stop polling, reached max timestamp.", c.element());
         return stop();
       }
 
+      if (computedWatermark != null) {

Review comment:
       Since the restriction is done, wouldn't the watermark not be part of the `min` set of remaining restrictions being processed?




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org