mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-6455: unique tmpdirs for test_partition_metadata_compatibility
Concurrent hive statements running in local mode can race to modify the contents of temporary directories - see IMPALA-6108. This applies the workaround for IMPALA-6108 to the run_stmt_in_hive() utility function, which is used by test_partition_metadata_compatibility. Testing: I wasn't able to reproduce the race locally, but I ran the test and confirmed that it still passed. I also confirmed that the temporary directories /tmp/impala-tests-* were created using "ls" while the tests were running. Change-Id: Ibabff859d19ddbb2a3048ecc02897a611d8ddb20 Reviewed-on: http://gerrit.cloudera.org:8080/9165 Reviewed-by: Philip Zeyliger <philip@cloudera.com> Tested-by: Impala Public Jenkins
This commit is contained in:
committed by
Impala Public Jenkins
parent
f97634fcf9
commit
f6576adc2e
@@ -121,6 +121,7 @@ HIVE_ARGS = '-n %s -u "jdbc:hive2://%s/default;%s" --verbose=true'\
|
||||
# running MR jobs locally), we move the temporary directory into a unique
|
||||
# directory via configuration. This block can be removed when
|
||||
# https://issues.apache.org/jira/browse/MAPREDUCE-6441 is resolved.
|
||||
# A similar workaround is used in tests/common/impala_test_suite.py.
|
||||
if options.hive_hs2_hostport.startswith("localhost:"):
|
||||
HIVE_ARGS += ' --hiveconf "mapreduce.cluster.local.dir=%s"' % (tempfile.mkdtemp(
|
||||
prefix="impala-data-load-"))
|
||||
|
||||
Reference in New Issue
Block a user