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 95e21ad96cd [Fix](test) Fix cumu compaction with delete case fail 
(#45523)
95e21ad96cd is described below

commit 95e21ad96cd6130aa4b48d6bdead9d515b4839c8
Author: abmdocrt <[email protected]>
AuthorDate: Tue Dec 17 19:35:59 2024 +0800

    [Fix](test) Fix cumu compaction with delete case fail (#45523)
---
 .../test_cumu_compaction_with_delete.groovy        | 32 ++++++++++++----------
 1 file changed, 17 insertions(+), 15 deletions(-)

diff --git 
a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy 
b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy
index 05ab96a628a..7ad5adf069e 100644
--- a/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy
+++ b/regression-test/suites/compaction/test_cumu_compaction_with_delete.groovy
@@ -18,13 +18,25 @@
 import org.codehaus.groovy.runtime.IOGroovyMethods
 
 suite("test_cumu_compaction_with_delete") {
-    def tableName = "test_cumu_compaction_with_delete"
+    def backendId_to_backendIP = [:]
+    def backendId_to_backendHttpPort = [:]
+    getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort);
+
+    def set_be_config = { key, value ->
+        for (String backend_id: backendId_to_backendIP.keySet()) {
+            def (code, out, err) = 
update_be_config(backendId_to_backendIP.get(backend_id), 
backendId_to_backendHttpPort.get(backend_id), key, value)
+            logger.info("update config: code=" + code + ", out=" + out + ", 
err=" + err)
+        }
+    }
+    set_be_config.call("enable_sleep_between_delete_cumu_compaction", "false")
+
+    def tableName = "test_cumu_compaction_with_delete1"
     def check_cumu_point = { cumu_point ->
         def tablets = sql_return_maparray """ show tablets from ${tableName}; 
"""
         int cumuPoint = 0
         for (def tablet in tablets) {
             String tablet_id = tablet.TabletId
-            (code, out, err) = curl("GET", tablet.CompactionStatus)
+            def (code, out, err) = curl("GET", tablet.CompactionStatus)
             logger.info("Show tablets status: code=" + code + ", out=" + out + 
", err=" + err)
             assertEquals(code, 0)
             def tabletJson = parseJson(out.trim())
@@ -56,7 +68,7 @@ suite("test_cumu_compaction_with_delete") {
             if(check_cumu_point(100)){
                 break;
             }
-            Thread.sleep(1000)
+            Thread.sleep(10000)
         }
         def time_diff = System.currentTimeMillis() - now
         logger.info("time_diff:" + time_diff)
@@ -70,19 +82,9 @@ suite("test_cumu_compaction_with_delete") {
         try_sql("DROP TABLE IF EXISTS ${tableName} FORCE")
     }
 
-    def backendId_to_backendIP = [:]
-    def backendId_to_backendHttpPort = [:]
-    getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort);
-
-    def set_be_config = { key, value ->
-        for (String backend_id: backendId_to_backendIP.keySet()) {
-            def (code, out, err) = 
update_be_config(backendId_to_backendIP.get(backend_id), 
backendId_to_backendHttpPort.get(backend_id), key, value)
-            logger.info("update config: code=" + code + ", out=" + out + ", 
err=" + err)
-        }
-    }
-
     try {
         set_be_config.call("enable_sleep_between_delete_cumu_compaction", 
"true")
+        tableName = "test_cumu_compaction_with_delete2"
         sql """ DROP TABLE IF EXISTS ${tableName} """
         sql """
             CREATE TABLE ${tableName} (
@@ -105,7 +107,7 @@ suite("test_cumu_compaction_with_delete") {
             if(check_cumu_point(100)){
                 break;
             }
-            Thread.sleep(1000)
+            Thread.sleep(10000)
         }
         def time_diff = System.currentTimeMillis() - now
         logger.info("time_diff:" + time_diff)


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

Reply via email to