zddr commented on code in PR #47103:
URL: https://github.com/apache/doris/pull/47103#discussion_r1919509758


##########
regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy:
##########
@@ -1521,22 +1521,22 @@ class Suite implements GroovyInterceptable {
 
     def waitingMTMVTaskFinishedByMvNameAllowCancel = {mvName, dbName = 
context.dbName ->
         Thread.sleep(2000);
-        String showTasks = "select 
TaskId,JobId,JobName,MvId,Status,MvName,MvDatabaseName,ErrorMsg from 
tasks('type'='mv') where MvDatabaseName = '${dbName}' and MvName = '${mvName}' 
order by CreateTime DESC LIMIT 1"
+        String showTasks = "select 
TaskId,JobId,JobName,MvId,Status,MvName,MvDatabaseName,ErrorMsg from 
tasks('type'='mv') where MvDatabaseName = '${dbName}' and MvName = '${mvName}' 
order by CreateTime ASC"
 
         String status = "NULL"
         List<List<Object>> result
         long startTime = System.currentTimeMillis()
         long timeoutTimestamp = startTime + 5 * 60 * 1000 // 5 min
         List<String> toCheckTaskRow = new ArrayList<>();
-        while (timeoutTimestamp > System.currentTimeMillis() && (status != 
"SUCCESS")) {
+        while (timeoutTimestamp > System.currentTimeMillis() && (status == 
'PENDING' || status == 'RUNNING' || status == 'NULL')) {

Review Comment:
   should add `|| status == 'CANCELED'`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to