This is an automated email from the ASF dual-hosted git repository.
lijibing pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 45cbbe9a2ed Add waiting timeout while creating mv and row count
report. (#31944) (#31968)
45cbbe9a2ed is described below
commit 45cbbe9a2edf40f3dda84ed33403a0741d3b8e3c
Author: Jibing-Li <[email protected]>
AuthorDate: Fri Mar 8 00:19:59 2024 +0800
Add waiting timeout while creating mv and row count report. (#31944)
(#31968)
---
regression-test/suites/statistics/test_analyze_mv.groovy | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/regression-test/suites/statistics/test_analyze_mv.groovy
b/regression-test/suites/statistics/test_analyze_mv.groovy
index f7fdd7beda6..c2f6d9b38ca 100644
--- a/regression-test/suites/statistics/test_analyze_mv.groovy
+++ b/regression-test/suites/statistics/test_analyze_mv.groovy
@@ -18,7 +18,7 @@
suite("test_analyze_mv") {
def wait_mv_finish = { db, table ->
- while(true) {
+ for (int loop = 0; loop < 300; loop++) {
Thread.sleep(1000)
boolean finished = true;
def result = sql """SHOW ALTER TABLE MATERIALIZED VIEW FROM ${db}
WHERE tableName="${table}";"""
@@ -29,9 +29,10 @@ suite("test_analyze_mv") {
}
}
if (finished) {
- break;
+ return;
}
}
+ throw new Exception("Wait mv finish timeout.")
}
def wait_row_count_reported = { db, table, expected ->
@@ -66,7 +67,7 @@ suite("test_analyze_mv") {
}
def wait_analyze_finish = { table ->
- while(true) {
+ for (int loop = 0; loop < 300; loop++) {
Thread.sleep(1000)
boolean finished = true;
def result = sql """SHOW ANALYZE ${table};"""
@@ -82,9 +83,10 @@ suite("test_analyze_mv") {
}
}
if (finished) {
- break;
+ return;
}
}
+ throw new Exception("Wait analyze finish timeout.")
}
def verify_column_stats = { all_column_result, one_column_result ->
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]