Skip to content

Commit

Permalink
[FLINK-32668] fix up watchdog timeout error msg in common.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
loserwang1024 authored and XComp committed Aug 21, 2023
1 parent b5b1340 commit 404a780
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flink-end-to-end-tests/test-scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

#
Expand Down

0 comments on commit 404a780

Please sign in to comment.