luca-p-castelli opened a new pull request, #1272: URL: https://github.com/apache/flink-kubernetes-operator/pull/1272
## What is the purpose of the change On Flink 2.0, 2.1, and 2.2, every savepoint fails in `e2e-tests/test_application_operations.sh` and `e2e-tests/test_sessionjob_operations.sh`. 1. `.github/workflows/e2e.yaml` runs `StateMachineExample` from `flink-examples-streaming-2.0.0.jar`, which uses the State V2 async API and throws `UnsupportedOperationException` on canonical savepoints. This is tracked in FLINK-39061, whose fix versions have not been released yet. FLINK-38147 switched `e2e-tests/test_snapshot.sh` and `e2e-tests/data/savepoint.yaml` to `NATIVE` savepoints, while `e2e-tests/data/flinkdep-cr.yaml` and `e2e-tests/data/sessionjob-cr.yaml` stayed on `CANONICAL`. 2. Both scripts wait for `savepointInfo.triggerId` and `triggerTimestamp` to be `null`, then fail only if `lastSavepoint.location` is an empty string. Because `triggerId` is `null` both before the operator records it and after a failed savepoint clears it, and `yq` prints `"null"` when `location` is missing, failed savepoints pass unnoticed. On `test_sessionjob_operations.sh`, the failed manual savepoint retries for about 120 seconds until the grace period expires, and the next parallelism upgrade passes only by falling back to `last-state`. If the script reads `triggerId` as `null` before the operator writes it, the job recovers to `RUNNING` before the upgrade reconciles and the test times out after 300 seconds retrying canonical `stopWithSavepoint`. ## Brief change log - Set `kubernetes.operator.savepoint.format.type: NATIVE` in `e2e-tests/data/flinkdep-cr.yaml` and `e2e-tests/data/sessionjob-cr.yaml`, matching `e2e-tests/test_snapshot.sh`. - Wait for `.status.jobStatus.savepointInfo.lastSavepoint.triggerNonce` to reach `123456` before checking `triggerId` and `triggerTimestamp`, and reject an empty or `"null"` location in `e2e-tests/test_application_operations.sh` and `e2e-tests/test_sessionjob_operations.sh`. ## Verifying this change Covered by the existing `test_application_operations.sh` and `test_sessionjob_operations.sh` e2e CI matrix across Flink 1.20, 2.0, 2.1, and 2.2. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changes to the `CustomResourceDescriptors`: no - Core observer or reconciler logic that is regularly executed: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable -- 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]
