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

dataroaring 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 688192b25b2 [fix](mv case) waiting mv task should just care the 
lastest one (#55802)
688192b25b2 is described below

commit 688192b25b2890a8152748be06e48d65bb842af7
Author: Yongqiang YANG <[email protected]>
AuthorDate: Tue Sep 9 20:16:10 2025 +0800

    [fix](mv case) waiting mv task should just care the lastest one (#55802)
---
 .../main/groovy/org/apache/doris/regression/suite/Suite.groovy   | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
index 1ce9f38a924..139222721b5 100644
--- 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
+++ 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
@@ -1798,7 +1798,7 @@ class Suite implements GroovyInterceptable {
 
     void waitingMVTaskFinishedByMvName(String dbName, String tableName, String 
indexName) {
         Thread.sleep(2000)
-        String showTasks = "SHOW ALTER TABLE MATERIALIZED VIEW from ${dbName} 
where TableName='${tableName}' ORDER BY CreateTime DESC"
+        String showTasks = "SHOW ALTER TABLE MATERIALIZED VIEW from ${dbName} 
where TableName='${tableName}' ORDER BY CreateTime DESC LIMIT 1"
         String status = "NULL"
         List<List<Object>> result
         long startTime = System.currentTimeMillis()
@@ -1807,12 +1807,7 @@ class Suite implements GroovyInterceptable {
         while (timeoutTimestamp > System.currentTimeMillis() && (status != 
'FINISHED')) {
             result = sql(showTasks)
             logger.info("crrent db is " + dbName + ", showTasks result: " + 
result.toString())
-            // just consider current db
-            for (List<String> taskRow : result) {
-                if (taskRow.get(5).equals(indexName)) {
-                    toCheckTaskRow = taskRow;
-                }
-            }
+            toCheckTaskRow = result.last()
             if (toCheckTaskRow.isEmpty()) {
                 logger.info("waitingMVTaskFinishedByMvName toCheckTaskRow is 
empty")
                 Thread.sleep(1000);


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

Reply via email to