Skip to content

Commit

Permalink
update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
gyfora committed Aug 26, 2024
1 parent a72c5b6 commit 9a152e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e-tests/test_sessionjob_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ assert_available_slots 1 $CLUSTER_ID

echo "Successfully run the sessionjob savepoint upgrade test"

# Testing last-state mode upgrade
# Update the FlinkSessionJob and trigger the last-state upgrade
kubectl patch sessionjob ${SESSION_JOB_NAME} --type merge --patch '{"spec":{"job": {"parallelism": 2, "upgradeMode": last-state } } }'

# Check the job was restarted with the new parallelism
wait_for_status $SESSION_JOB_IDENTIFIER '.status.jobStatus.state' RUNNING ${TIMEOUT} || exit 1
assert_available_slots 0 $CLUSTER_ID

echo "Successfully run the sessionjob savepoint upgrade test"

# Test Operator restart
echo "Delete session job " + $SESSION_JOB_NAME
kubectl delete flinksessionjob $SESSION_JOB_NAME
Expand Down

0 comments on commit 9a152e5

Please sign in to comment.