This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 98786ad3995 branch-3.1: [fix](mv case) waiting mv task should just
care the lastest one #55802 (#55830)
98786ad3995 is described below
commit 98786ad3995890675135b46e63fad43d13819435
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Sep 10 16:52:19 2025 +0800
branch-3.1: [fix](mv case) waiting mv task should just care the lastest one
#55802 (#55830)
Cherry-picked from #55802
Co-authored-by: Yongqiang YANG <[email protected]>
---
.../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 c23079331b4..af837548a7d 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
@@ -1662,7 +1662,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()
@@ -1671,12 +1671,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]