Skip to content

Commit 3d8bfa5

Browse files
committed
Updating the B/G e2e tests
1 parent d2a51c3 commit 3d8bfa5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

e2e-tests/test_bluegreen_laststate.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ wait_for_status $APPLICATION_IDENTIFIER '.status.blueGreenState' ACTIVE_BLUE ${T
5252

5353
#blue_job_id=$(kubectl get -oyaml flinkdep/basic-bluegreen-example-blue | yq '.status.jobStatus.jobId')
5454

55+
#kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"template":{"spec":{"flinkConfiguration":{"rest.port":"8082","state.checkpoints.num-retained":"6"}}}}}'
5556
kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"template":{"spec":{"flinkConfiguration":{"state.checkpoints.num-retained":"6"}}}}}'
5657
echo "Resource patched, giving a chance for the savepoint to be taken..."
5758
sleep 10
5859

60+
jm_pod_name=$(get_jm_pod_name $BLUE_CLUSTER_ID)
61+
echo "Inspecting savepoint directory..."
62+
kubectl exec -it $jm_pod_name -- bash -c "ls -lt /opt/flink/volume/flink-sp/"
63+
5964
wait_for_status $GREEN_APPLICATION_IDENTIFIER '.status.lifecycleState' STABLE ${TIMEOUT} || exit 1
6065
kubectl wait --for=delete deployment --timeout=${TIMEOUT}s --selector="app=${BLUE_CLUSTER_ID}"
6166
wait_for_status $APPLICATION_IDENTIFIER '.status.jobStatus.state' RUNNING ${TIMEOUT} || exit 1
@@ -69,7 +74,7 @@ echo "Waiting for deployment to be deleted..."
6974
kubectl wait --for=delete flinkbluegreendeployments/$BG_CLUSTER_ID
7075

7176
if [[ $green_initialSavepointPath == '/opt/flink/volume/flink-sp/savepoint-'* ]]; then
72-
echo 'Green deployment started from the expected initialSavepointPath: ' $green_initialSavepointPath
77+
echo 'Green deployment started from the expected initialSavepointPath:' $green_initialSavepointPath
7378
else
7479
echo 'Unexpected initialSavepointPath:' $green_initialSavepointPath
7580
exit 1

0 commit comments

Comments
 (0)