Skip to content

Commit 67707c0

Browse files
committed
use native checkpoint for tests
1 parent 296ecf9 commit 67707c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

e2e-tests/test_snapshot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ wait_for_status $APPLICATION_IDENTIFIER '.status.jobStatus.state' RUNNING ${TIME
5353

5454

5555
# Test upgrade by setting legacy field
56-
kubectl patch flinkdep ${CLUSTER_ID} --type merge --patch '{"spec":{"job":{"state": "suspended"}}}'
56+
# Use native savepoints to avoid Flink 2.0/2.1 issues
57+
kubectl patch flinkdep ${CLUSTER_ID} --type merge --patch '{"spec":{"job":{"state": "suspended"}, "flinkConfiguration":{"kubernetes.operator.savepoint.format.type" : "NATIVE"} }}'
5758
wait_for_status $APPLICATION_IDENTIFIER '.status.lifecycleState' "SUSPENDED" ${TIMEOUT} || exit 1
5859

5960
location=$(kubectl get $APPLICATION_IDENTIFIER -o yaml | yq '.status.jobStatus.upgradeSavepointPath')

examples/basic-checkpoint-ha.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spec:
2929
state.checkpoints.dir: file:///flink-data/checkpoints
3030
high-availability.type: kubernetes
3131
high-availability.storageDir: file:///flink-data/ha
32+
kubernetes.operator.savepoint.format.type: NATIVE
3233
serviceAccount: flink
3334
jobManager:
3435
resource:

0 commit comments

Comments
 (0)