Aitozi commented on code in PR #196:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/196#discussion_r867442186
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/reconciler/ReconciliationUtils.java:
##########
@@ -62,14 +66,20 @@ void updateForSpecReconciliationSuccess(
var clonedSpec = ReconciliationUtils.clone(spec);
AbstractFlinkSpec lastReconciledSpec =
reconciliationStatus.deserializeLastReconciledSpec();
+ boolean upgrading = false;
if (lastReconciledSpec != null && lastReconciledSpec.getJob() != null)
{
Long oldSavepointTriggerNonce =
lastReconciledSpec.getJob().getSavepointTriggerNonce();
clonedSpec.getJob().setSavepointTriggerNonce(oldSavepointTriggerNonce);
+ if (clonedSpec.getJob().getState() == JobState.RUNNING
Review Comment:
What about add a method to judge whether there is on-going upgrading ?
--
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]