tillrohrmann commented on a change in pull request #18569:
URL: https://github.com/apache/flink/pull/18569#discussion_r795753158
##########
File path: flink-core/src/test/java/org/apache/flink/testutils/TestingUtils.java
##########
@@ -56,4 +56,9 @@ public static ScheduledExecutor defaultScheduledExecutor() {
public static UUID zeroUUID() {
return ZERO_UUID;
}
+
+ public static Duration infiniteDuration() {
+ // a year should be more than enough for simulating an infinite
duration
+ return Duration.ofDays(365L);
Review comment:
`Long.MAX_VALUE` unfortunately does not work because internally it will
be converted to nanoseconds. Moreover, when doing calculations like calculating
a `Deadline`, then you also do calculations with `now`. Therefore, I've chose
the 365 days.
I can move the code closer to `infiniteTime`. Changing `infiniteTime` will
probably not change a lot. Therefore, I'd like to keep it as is.
--
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]