afedulov commented on code in PR #656:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/656#discussion_r1304376064


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/utils/SnapshotUtils.java:
##########
@@ -259,6 +257,31 @@ protected static Optional<SnapshotTriggerType> 
shouldTriggerSnapshot(
         return Optional.empty();
     }
 
+    private static boolean shouldTriggerAutomaticSnapshot(
+            SnapshotType snapshotType, String automaticTriggerExpression, 
Instant lastTrigger) {
+        if (StringUtils.isBlank(automaticTriggerExpression)) {
+            return false;
+        }
+
+        boolean shouldTrigger =
+                shouldTriggerIntervalBasedSnapshot(
+                                snapshotType, automaticTriggerExpression, 
lastTrigger)
+                        || shouldTriggerCronBasedSnapshot(

Review Comment:
   I actually just realized that the logic is also false. We cannot rely on the 
true/false at all. It might be that both triggers are simply not due. We'll 
need to work with exceptions directly. I'll give it another go.



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