From 404a7804188c520b83ef38c863150b8bc4da80a3 Mon Sep 17 00:00:00 2001 From: Hongshun Wang Date: Fri, 18 Aug 2023 10:26:41 +0800 Subject: [PATCH] [FLINK-32668] fix up watchdog timeout error msg in common.sh --- flink-end-to-end-tests/test-scripts/common.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flink-end-to-end-tests/test-scripts/common.sh b/flink-end-to-end-tests/test-scripts/common.sh index 1ae62577a864f..27997bdd6668d 100644 --- a/flink-end-to-end-tests/test-scripts/common.sh +++ b/flink-end-to-end-tests/test-scripts/common.sh @@ -935,8 +935,12 @@ function extract_job_id_from_job_submission_return() { kill_test_watchdog() { local watchdog_pid=$(cat $TEST_DATA_DIR/job_watchdog.pid) - echo "Stopping job timeout watchdog (with pid=$watchdog_pid)" - kill $watchdog_pid + if kill -0 $watchdog_pid > /dev/null 2>&1; then + echo "Stopping job timeout watchdog (with pid=$watchdog_pid)" + kill $watchdog_pid + else + echo "No watchdog process with pid=$watchdog_pid present, anymore. No action required to clean the watchdog process up." + fi } #