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

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


The following commit(s) were added to refs/heads/master by this push:
     new 01f83399600 [test](auth)Fix backup backup of auth test case (#56988)
01f83399600 is described below

commit 01f8339960077b53f0bd2e07b9c84eac3373dd41
Author: zfr95 <[email protected]>
AuthorDate: Thu Oct 16 14:17:58 2025 +0800

    [test](auth)Fix backup backup of auth test case (#56988)
    
    [test](auth)Fix backup backup of auth test case
    
    There is a conflict when creating a backup task in the case. Use the
    UUID to update the database name and avoid conflicts with other cases.
---
 regression-test/suites/auth_call/test_ddl_backup_auth.groovy | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/regression-test/suites/auth_call/test_ddl_backup_auth.groovy 
b/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
index fdb2d6b2221..1a2f7b79718 100644
--- a/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
+++ b/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
@@ -24,9 +24,11 @@ suite("test_ddl_backup_auth","p0,auth_call") {
     int hashCode = randomValue.hashCode()
     hashCode = hashCode > 0 ? hashCode : hashCode * (-1)
 
+    def label = UUID.randomUUID().toString().replaceAll("-", "")
+
     String user = 'test_ddl_backup_auth_user'
     String pwd = 'C123_567p'
-    String dbName = 'test_ddl_backup_auth_db'
+    String dbName = 'test_ddl_backup_auth_db_' + label
     String tableName = 'test_ddl_backup_auth_tb'
     String repositoryName = 'test_ddl_backup_auth_rps'
     String backupLabelName = 'test_ddl_backup_auth_backup_label' + 
hashCode.toString()
@@ -100,12 +102,18 @@ suite("test_ddl_backup_auth","p0,auth_call") {
         }
     }
     sql """grant LOAD_PRIV on ${dbName}.* to ${user}"""
+
+    // check backup job not exists
+    def res = sql """SHOW BACKUP FROM ${dbName};"""
+    logger.info("res: " + res)
+    assertTrue(res.size() == 0)
+
     connect(user, "${pwd}", context.config.jdbcUrl) {
         sql """BACKUP SNAPSHOT ${dbName}.${backupLabelName}
                 TO ${repositoryName}
                 ON (${tableName})
                 PROPERTIES ("type" = "full");"""
-        def res = sql """SHOW BACKUP FROM ${dbName};"""
+        res = sql """SHOW BACKUP FROM ${dbName};"""
         logger.info("res: " + res)
         assertTrue(res.size() == 1)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to