IMPALA-3511: Fix race setting up TestKuduOperations A couple of tests could both attempt to create/destroy the same database if they were running in parallel. Several other related tests were marked as requiring serial execution, these needed to be marked for serial execution as well.
Change-Id: If0573a755cd371363c2e43c001d5c1ba499793c6 Reviewed-on: http://gerrit.cloudera.org:8080/3063 Reviewed-by: Casey Ching <[email protected]> Tested-by: Internal Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/e61b5bc1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/e61b5bc1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/e61b5bc1 Branch: refs/heads/master Commit: e61b5bc119f712fdcb9b0326302c466add65a217 Parents: cd193f0 Author: Casey Ching <[email protected]> Authored: Fri May 13 12:49:38 2016 -0700 Committer: Tim Armstrong <[email protected]> Committed: Sat May 14 01:30:01 2016 -0700 ---------------------------------------------------------------------- tests/query_test/test_kudu.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/e61b5bc1/tests/query_test/test_kudu.py ---------------------------------------------------------------------- diff --git a/tests/query_test/test_kudu.py b/tests/query_test/test_kudu.py index a8d7545..cc478fe 100644 --- a/tests/query_test/test_kudu.py +++ b/tests/query_test/test_kudu.py @@ -70,6 +70,7 @@ class TestKuduOperations(ImpalaTestSuite): def teardown_method(self, method): self.cleanup_db("kududb_test") + @pytest.mark.execute_serially def test_kudu_scan_node(self, vector): self.run_test_case('QueryTest/kudu-scan-node', vector, use_db="functional_kudu", wait_secs_between_stmts=1) @@ -87,6 +88,7 @@ class TestKuduOperations(ImpalaTestSuite): def test_kudu_alter_table(self, vector): self.run_test_case('QueryTest/kudu_alter', vector, use_db="kududb_test") + @pytest.mark.execute_serially def test_kudu_stats(self, vector): self.run_test_case('QueryTest/kudu_stats', vector, use_db="kududb_test")
