Skip to content

Commit e111256

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

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

e2e-tests/data/savepoint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ spec:
2828
savepoint:
2929
alreadyExists: false
3030
disposeOnDelete: true
31-
formatType: CANONICAL
31+
formatType: NATIVE
3232

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)