You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by st...@apache.org on 2024/01/31 05:09:18 UTC
(impala) 02/02: IMPALA-12471 PART-2: skip mysql ext jdbc tests if setup environment fails.
This is an automated email from the ASF dual-hosted git repository.
stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit adfe82c97c0772cf9d336d88254f0a8b3acc7957
Author: gaurav1086 <ga...@gmail.com>
AuthorDate: Tue Jan 30 10:30:54 2024 -0800
IMPALA-12471 PART-2: skip mysql ext jdbc tests if
setup environment fails.
This patch modifies the mysql tests to be marked as xfailed
if the mysql environment fails to setup successfully.
Change-Id: Ib7829aed09d25ff3e636004f3d1f32ecc6f37299
Reviewed-on: http://gerrit.cloudera.org:8080/20975
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Wenzhe Zhou <wz...@cloudera.com>
---
tests/custom_cluster/test_ext_data_sources.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/custom_cluster/test_ext_data_sources.py b/tests/custom_cluster/test_ext_data_sources.py
index 405955965..137693edb 100644
--- a/tests/custom_cluster/test_ext_data_sources.py
+++ b/tests/custom_cluster/test_ext_data_sources.py
@@ -170,7 +170,9 @@ class TestMySqlExtJdbcTables(CustomClusterTestSuite):
elif e.returncode == 30:
pytest.skip("File /var/run/mysqld/mysqld.sock not found")
else:
- assert False, "Failed to setup MySQL testing environment"
+ # The mysql docker container creation and mysqld can fail due to multiple
+ # reasons. This could be an Intermittent issue and need to re-run the test.
+ pytest.xfail(reason="Failed to setup MySQL testing environment")
@classmethod
def _remove_mysql_test_env(cls):