gyfora commented on code in PR #1248:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1248#discussion_r4717282486
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/reconciler/deployment/AbstractJobReconciler.java:
##########
@@ -331,6 +340,22 @@ protected JobUpgrade
getJobUpgrade(FlinkResourceContext<CR> ctx, Configuration d
return JobUpgrade.unavailable();
}
+ private static boolean lastStateFallbackEnabled(Configuration
deployConfig) {
+ return deployConfig.get(
+
KubernetesOperatorConfigOptions.OPERATOR_JOB_UPGRADE_LAST_STATE_FALLBACK_ENABLED);
+ }
+
+ protected boolean cancellationTimedOut(FlinkResourceContext<CR> ctx) {
+ var updateTime =
ctx.getResource().getStatus().getJobStatus().getUpdateTime();
+ return updateTime != null
+ && clock.instant()
+ .isAfter(
+
Instant.ofEpochMilli(Long.parseLong(updateTime))
+ .plus(
+ ctx.getOperatorConfig()
+
.getFlinkShutdownClusterTimeout()));
Review Comment:
I would rather leave this "resource.cleanup.timeout" the config docs
explicitly already cover this from before. Introducing new configs just
complicates this for existing and new users. If this becomes a real problem, we
can introduce a separate one.
--
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]