Abacn commented on code in PR #21740:
URL: https://github.com/apache/beam/pull/21740#discussion_r899158211


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/WindmillTimeUtils.java:
##########
@@ -45,6 +45,9 @@ public static Instant windmillToHarnessTimestamp(long 
timestampUs) {
     // Windmill should never send us an unknown timestamp.
     Preconditions.checkArgument(timestampUs != Long.MIN_VALUE);
     Instant result = new Instant(divideAndRoundDown(timestampUs, 1000));
+    if (result.isBefore(BoundedWindow.TIMESTAMP_MIN_VALUE)) {
+      return BoundedWindow.TIMESTAMP_MIN_VALUE;

Review Comment:
   This condition prevented timestamp overflow and broke unit test 
WindmillTimerInternalsTest.testTimerDataToFromTimer(<timestamp>=BoundedWindow.TIMESTAMP_MIN_VALUE).
 If this is intended behavior, should adjust the test case.



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

Reply via email to