Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11183

run-all-tests.sh fails to run tests in multiple iterations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.2.0, Impala 4.0.0, Impala 3.3.0, Impala 3.4.0
    • Impala 4.2.0
    • Infrastructure
    • None
    • ghx-label-3

    Description

      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

      "${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
      

      We should move the kill command outside the loop.

      Attachments

        Issue Links

          Activity

            People

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: