This is an automated email from the ASF dual-hosted git repository.

wzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 74b6df799 IMPALA-12930: Fix TestExtDataSources.test_jdbc_data_source 
failure
74b6df799 is described below

commit 74b6df79979c16c980cbf1fe41db555d084bf0ff
Author: wzhou-code <[email protected]>
AuthorDate: Thu Mar 21 10:15:03 2024 -0700

    IMPALA-12930: Fix TestExtDataSources.test_jdbc_data_source failure
    
    The patch of IMPALA-12802 added some negative test cases for altering
    external JDBC table. These test cases verify the error messages.
    One of test cases failed on some test environments due to different
    error message returned from Postgres server.
    
    This patch fixes the unit-test failure by checking if the error message
    is matching with one of two possible error messages.
    
    Testing:
     - Ran the unit-test on Jenkins with centos and ubuntu and verified the
       unit-test passed for different error messages.
    
    Change-Id: I84566f67751538d72a4d17da21e7ea907e1dcdd2
    Reviewed-on: http://gerrit.cloudera.org:8080/21181
    Reviewed-by: Wenzhe Zhou <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 .../workloads/functional-query/queries/QueryTest/jdbc-data-source.test  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/jdbc-data-source.test 
b/testdata/workloads/functional-query/queries/QueryTest/jdbc-data-source.test
index 72e375b80..8f74016e9 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/jdbc-data-source.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/jdbc-data-source.test
@@ -481,7 +481,7 @@ SET TBLPROPERTIES ("dbcp.username"="UNKNOWN", 
"dbcp.password"="NONE");
 ---- QUERY
 select * from jdbc_test order by id limit 5;
 ---- CATCH
-row_regex:.*Caught exception.*(FATAL: password authentication failed for user 
"UNKNOWN")
+row_regex:.*(FATAL: password authentication failed for user "UNKNOWN"|FATAL: 
role "UNKNOWN" does not exist).*
 ====
 ---- QUERY
 # Alter JDBC table to set correct username and password.

Reply via email to