naveencodet commented on PR #1239:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/1239#issuecomment-7184650810

   Thanks for working on this. I checked this PR against a kind cluster 
(operator image built from the PR head, `d83ee74`, Flink 2.2, legacy savepoint 
history) and by reading the code.
   
   **Second failure from the ticket (redeploy restores from a stale 
`upgradeSavepointPath`): fixed in legacy mode.** The new tests fail without the 
`SnapshotObserver` change and pass with it.
   
   **First failure (new JobManager finds no checkpoint in HA and falls back to 
`execution.savepoint.path`): still reproducible with this PR.**
   
   Steps:
   1. Savepoint upgrade of a job with `upgradeMode: savepoint` and Kubernetes 
HA, `savepoint.history.max.age: 1m`, cleanup enabled.
   2. Wait past the max age. The operator logs `Disposing savepoint 
…/savepoint-c55009-6ec44fee40da`, which is the savepoint the cluster was 
started with.
   3. Kill the JobManager and empty the job's HA ConfigMap, so HA holds no 
completed checkpoint.
   4. The JobManager logs `Found 0 checkpoints` and then 
`FileNotFoundException: Cannot find checkpoint or savepoint file/directory 
'…/savepoint-c55009-6ec44fee40da'`.
   
   At that point the cluster config still says 
`execution.savepoint.path=…savepoint-c55009-6ec44fee40da`, while 
`status.jobStatus.upgradeSavepointPath` has already moved to the newest 
savepoint. So after this PR the status field no longer points at the savepoint 
the cluster restores from, and the guard suggested in the ticket (skip 
disposing `upgradeSavepointPath`) would not protect it either.
   
   I think the first failure is better handled as a separate change. I'm happy 
to take it in a follow-up ticket, unless you are already working on it, and I 
would base it on this PR.
   
   Also, the replies on the review thread mention CR-mode coverage, docs, and 
`restart.failed` / `FlinkSessionJob` tests, but the PR head still has only the 
original commit and three files. Have those been pushed?
   


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