[ 
https://issues.apache.org/jira/browse/BEAM-9430?focusedWorklogId=431924&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-431924
 ]

ASF GitHub Bot logged work on BEAM-9430:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/May/20 22:19
            Start Date: 07/May/20 22:19
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #11607:
URL: https://github.com/apache/beam/pull/11607#discussion_r421827443



##########
File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/WatermarkEstimators.java
##########
@@ -37,14 +37,16 @@
     private Instant lastReportedWatermark;
 
     public Manual(Instant watermark) {
-      this.watermark = checkNotNull(watermark, "watermark must not be null.");
-      if (watermark.isBefore(GlobalWindow.TIMESTAMP_MIN_VALUE)
-          || watermark.isAfter(GlobalWindow.TIMESTAMP_MAX_VALUE)) {
-        throw new IllegalArgumentException(
-            String.format(
-                "Provided watermark %s must be within bounds [%s, %s].",
-                watermark, GlobalWindow.TIMESTAMP_MIN_VALUE, 
GlobalWindow.TIMESTAMP_MAX_VALUE));
+      checkNotNull(watermark, "watermark must not be null.");
+
+      // Making sure that the watermark is within bounds.

Review comment:
       `MIN` is the same but `GlobalWindow.MAX = BoundedWindow.MAX - 1 day` as 
can be seen here: 
https://github.com/apache/beam/blob/25b4ebc65953af34a0cfe83ed80feee0bc6df4ad/model/pipeline/src/main/proto/beam_runner_api.proto#L38




----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 431924)
    Time Spent: 6h 50m  (was: 6h 40m)

> Migrate from ProcessContext#updateWatermark to WatermarkEstimators
> ------------------------------------------------------------------
>
>                 Key: BEAM-9430
>                 URL: https://issues.apache.org/jira/browse/BEAM-9430
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: Major
>              Labels: backward-incompatible
>             Fix For: 2.21.0
>
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>
> Current discussion underway in 
> [https://lists.apache.org/thread.html/r5d974b6a58bc04ff4c02682fda4ef68608121f1bf23a86e9d592ca6e%40%3Cdev.beam.apache.org%3E]
>  
> Proposed API: [https://github.com/apache/beam/pull/10992]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to