You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A suspended child FD left behind by an aborted transition keeps its
status subresource on the cluster. AbstractJobReconciler.restoreJob() in
the terminal+no-HA upgrade branch reads from status.jobStatus.upgrade-
SavepointPath, not from spec.initialSavepointPath. createOrReplace on
the next transition writes a fresh spec but does not touch the status
subresource, so the operator silently restores the job from the stale
savepoint recorded in status.
abortDeployment now deletes the failed child instead of suspending it.
A fresh deploy on the next transition forces the FD reconciler into the
first-deployment branch, which reads spec.initialSavepointPath correctly.
If the delete call fails, fall back to suspendFlinkDeployment to avoid
leaving the resource in an inconsistent state.
Updated tests:
- verifyFailureDuringTransition / verifyFailureBeforeFirstDeployment:
assert the failed child is absent (not SUSPENDED) after abort.
- verifyFailedChildDeletedOnAbort (replaces the earlier sync test):
asserts the failed child is gone after abort and the next transition
fresh-creates GREEN with no carry-over status.upgradeSavepointPath.
Reverts the post-deployCluster status sync added in the prior version of
this commit; deletion makes the sync unnecessary and avoids the watch-
event race where the FD reconciler could snapshot status before the sync
landed.
Copy file name to clipboardExpand all lines: flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/controller/bluegreen/BlueGreenDeploymentService.java
Copy file name to clipboardExpand all lines: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/controller/FlinkBlueGreenDeploymentControllerTest.java
+96-12Lines changed: 96 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -297,24 +297,20 @@ public void verifyFailureDuringTransition(FlinkVersion flinkVersion) throws Exce
297
297
298
298
assertTrue(rs.updateControl.isPatchStatus());
299
299
300
-
// The first job should be RUNNING, the second should be SUSPENDED
301
300
assertFailingJobStatus(rs);
302
301
// No longer TRANSITIONING_TO_GREEN and rolled back to ACTIVE_BLUE
0 commit comments