File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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"}}}}}'
5556kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch ' {"spec":{"template":{"spec":{"flinkConfiguration":{"state.checkpoints.num-retained":"6"}}}}}'
5657echo " Resource patched, giving a chance for the savepoint to be taken..."
5758sleep 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+
5964wait_for_status $GREEN_APPLICATION_IDENTIFIER ' .status.lifecycleState' STABLE ${TIMEOUT} || exit 1
6065kubectl wait --for=delete deployment --timeout=${TIMEOUT} s --selector=" app=${BLUE_CLUSTER_ID} "
6166wait_for_status $APPLICATION_IDENTIFIER ' .status.jobStatus.state' RUNNING ${TIMEOUT} || exit 1
@@ -69,7 +74,7 @@ echo "Waiting for deployment to be deleted..."
6974kubectl wait --for=delete flinkbluegreendeployments/$BG_CLUSTER_ID
7075
7176if [[ $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
7378else
7479 echo ' Unexpected initialSavepointPath:' $green_initialSavepointPath
7580 exit 1
You can’t perform that action at this time.
0 commit comments