Alex Craig
02/16/2024, 5:33 PM2024-02-15 19:38:38,252 o.a.f.k.o.l.AuditUtils [INFO ][job-name] >>> Event | Info | SPECCHANGED | UPGRADE change(s) detected (Diff: FlinkDeploymentSpec[image : image:0a7c41b -> image:ebebc53, restartNonce : null -> 100]), starting reconciliation.
2024-02-15 19:38:38,252 o.a.f.k.o.r.d.AbstractJobReconciler [INFO ][job-name] Upgrading/Restarting running job, suspending first...
2024-02-15 19:38:38,260 o.a.f.k.o.r.d.ApplicationReconciler [INFO ][job-name] Job is not running but HA metadata is available for last state restore, ready for upgrade
2024-02-15 19:38:38,270 o.a.f.k.o.l.AuditUtils [INFO ][job-name] >>> Event | Info | SUSPENDED | Suspending existing deployment.
2024-02-15 19:38:38,270 o.a.f.k.o.s.NativeFlinkService [INFO ][job-name] Deleting JobManager deployment while preserving HA metadata.
2024-02-15 19:38:40,431 o.a.f.k.o.l.AuditUtils [INFO ][job-name] >>> Status | Info | UPGRADING | The resource is being upgraded
2024-02-15 19:38:40,532 o.a.f.k.o.l.AuditUtils [INFO ][job-name] >>> Event | Info | SUBMIT | Starting deployment
2024-02-15 19:38:40,532 o.a.f.k.o.s.AbstractFlinkService [INFO ][job-name] Deploying application cluster requiring last-state from HA metadata
2024-02-15 19:38:40,538 o.a.f.k.o.u.FlinkUtils [INFO ][job-name] Job graph in ConfigMap job-name-cluster-config-map is deleted
However, instead of using the last checkpoint taken, it used the last savepoint taken, which was 6 days old, putting our streams erroneously back 6 days! Log example from the job pods:
2024-02-15 19:39:03,887 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator [] - Restoring job 522b3c363499d81ed7922aa30b13e237 from Savepoint 20207 @ 0 for 522b3c363499d81ed7922aa30b13e237 located at abfss://savepoints@storageaccount.dfs.core.windows.net/job-name/savepoint-522b3c-8836a1edc709.
Any reason why it used the last savepoint rather than the last checkpoint? I was under the impression if upgradeMode: savepoint fell back to last-state, it would use the last checkpoint.Gyula F贸ra
02/16/2024, 9:17 PMGyula F贸ra
02/16/2024, 9:17 PMGyula F贸ra
02/16/2024, 9:20 PMAlex Craig
02/16/2024, 10:17 PMAlex Craig
02/16/2024, 10:27 PMAlex Craig
02/16/2024, 11:42 PMAlex Craig
02/17/2024, 12:02 AMGyula F贸ra
02/17/2024, 5:59 AMGyula F贸ra
02/17/2024, 6:07 AMGyula F贸ra
02/17/2024, 6:08 AMGyula F贸ra
02/17/2024, 7:08 AMAlex Craig
04/08/2024, 9:11 PMGyula F贸ra
04/09/2024, 3:41 AMAlex Craig
04/09/2024, 2:50 PMAlex Craig
04/09/2024, 2:51 PM