File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ assert_available_slots 1 $CLUSTER_ID
6767
6868echo " Successfully run the sessionjob savepoint upgrade test"
6969
70+ # Testing last-state mode upgrade
71+ # Update the FlinkSessionJob and trigger the last-state upgrade
72+ kubectl patch sessionjob ${SESSION_JOB_NAME} --type merge --patch ' {"spec":{"job": {"parallelism": 2, "upgradeMode": last-state } } }'
73+
74+ # Check the job was restarted with the new parallelism
75+ wait_for_status $SESSION_JOB_IDENTIFIER ' .status.jobStatus.state' RUNNING ${TIMEOUT} || exit 1
76+ assert_available_slots 0 $CLUSTER_ID
77+
78+ echo " Successfully run the sessionjob savepoint upgrade test"
79+
7080# Test Operator restart
7181echo " Delete session job " + $SESSION_JOB_NAME
7282kubectl delete flinksessionjob $SESSION_JOB_NAME
You can’t perform that action at this time.
0 commit comments