You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2022/03/15 12:10:00 UTC

[jira] [Created] (IMPALA-11183) run-all-tests.sh fails to run tests in multiple iterations

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)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org