damccorm commented on code in PR #41628:
URL: https://github.com/apache/beam/pull/41628#discussion_r4684967137


##########
.test-infra/dataproc/flink_cluster.sh:
##########
@@ -207,7 +208,10 @@ function restart() {
 
 # Deletes a Flink cluster.
 function delete() {
-  gcloud dataproc clusters delete $CLUSTER_NAME --region=$GCLOUD_REGION --quiet
+  local rc=0
+  gcloud dataproc clusters delete "$CLUSTER_NAME" --region="$GCLOUD_REGION" 
--quiet || rc=$?
+  gcloud storage rm -r "${INIT_ACTIONS_GCS_DIR}" || true

Review Comment:
   Good catch — added an explicit `[[ -n "${CLUSTER_NAME}" ]]` guard around 
`gcloud storage rm -r` in `delete()` (and updated the PR title/description to 
match the final diff).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to