Quanlong Huang created IMPALA-11183:
---------------------------------------
Summary: run-all-tests.sh fails to run tests in multiple iterations
Key: IMPALA-11183
URL: https://issues.apache.org/jira/browse/IMPALA-11183
Project: IMPALA
Issue Type: Bug
Components: Infrastructure
Affects Versions: Impala 3.4.0, Impala 3.3.0, Impala 4.0.0, Impala 3.2.0
Reporter: Quanlong Huang
Assignee: Quanlong Huang
I try running tests multiple times by exporting NUM_TEST_ITERATIONS to 100.
However, run-all-tests.sh fails at the second iteration when it wants to kill
the timeout process again.
The current code is
{code:bash}
"${IMPALA_HOME}/bin/script-timeout-check.sh" -timeout
$TIMEOUT_FOR_RUN_ALL_TESTS_MINS \
-script_name "$(basename $0)" &
TIMEOUT_PID=$!
...
for i in $(seq 1 $NUM_TEST_ITERATIONS)
do
... # run tests
pkill -P $TIMEOUT_PID || true
kill $TIMEOUT_PID
...
done
{code}
We should move the {{kill}} command outside the loop.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)