mirror of
https://github.com/apache/impala.git
synced 2026-01-29 21:00:18 -05:00
The symptom of this bug was that we were seeing "ValueError: bad marshal data" when trying to import from tests.hs2.test_hs2 during customer cluster tests. The problem was that we were not running the custom cluster tests through the new Impala Python virtualenv. Some tests (properly running with the virtualenv) that run before the customer cluster tests had caused the generation of pyc files for tests.hs2.test_hs2. Those pyc files then appeared corrupted when executing the custom cluster tests because the default python env is running a different version than the virtualenv those pyc files were generated from in earlier tests. Change-Id: Ie9d8f90c65921247dd885804165f9b7271ea807b Reviewed-on: http://gerrit.cloudera.org:8080/618 Reviewed-by: Casey Ching <casey@cloudera.com> Tested-by: Internal Jenkins
33 lines
1.1 KiB
Bash
Executable File
33 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2012 Cloudera Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Runs the Impala process failure tests.
|
|
|
|
# Disable HEAPCHECK for the process failure tests because they can cause false positives.
|
|
export HEAPCHECK=
|
|
set -u
|
|
|
|
RESULTS_DIR=${IMPALA_HOME}/tests/results
|
|
mkdir -p ${RESULTS_DIR}
|
|
|
|
pushd ${IMPALA_HOME}/tests
|
|
. ${IMPALA_HOME}/bin/set-classpath.sh &> /dev/null
|
|
impala-py.test experiments/test_process_failures.py \
|
|
--junitxml="${RESULTS_DIR}/TEST-impala-proc-failure.xml" \
|
|
--resultlog="${RESULTS_DIR}/TEST-impala-proc-failure.log" "$@"
|
|
EXIT_CODE=$?
|
|
popd
|
|
exit $EXIT_CODE
|