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

airborne12 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 e25887f6590 [test](regression) Wait for index change jobs in 
multi-index test (#66794)
e25887f6590 is described below

commit e25887f6590a7a0118c5974378db58aa29765232
Author: hoshinojyunn <[email protected]>
AuthorDate: Mon Aug 17 09:43:44 2026 +0800

    [test](regression) Wait for index change jobs in multi-index test (#66794)
    
    ### What problem does this PR solve?
    
    Issue Number: #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    
    The multi-index regression test waited for the latest column alter job
    after dropping an inverted index. Index removal rewrites existing
    rowsets asynchronously through an index change job, so the column alter
    state can be finished while old rowsets still retain the dropped index.
    Wait for the build index job after each `DROP INDEX` statement before
    running the following queries.
---
 .../test_single_column_multi_index1.groovy               | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/suites/inverted_index_p0/test_single_column_multi_index1.groovy
 
b/regression-test/suites/inverted_index_p0/test_single_column_multi_index1.groovy
index 408eb449c4e..8dbf863cfd7 100644
--- 
a/regression-test/suites/inverted_index_p0/test_single_column_multi_index1.groovy
+++ 
b/regression-test/suites/inverted_index_p0/test_single_column_multi_index1.groovy
@@ -161,11 +161,21 @@ suite("test_single_column_multi_index1", "p0") {
       runMatchQueries()
 
       sql """ DROP INDEX request_text_idx ON ${tableName}; """
-      wait_for_latest_op_on_table_finish(tableName, timeout)
+      if (isCloudMode()) {
+        // Cloud uses a schema change job here; Local uses an asynchronous 
index change job.
+        wait_for_latest_op_on_table_finish(tableName, timeout)
+      } else {
+        wait_for_build_index_on_partition_finish(tableName, timeout)
+      }
       sql """ DROP INDEX request_keyword_idx ON ${tableName}; """
-      wait_for_latest_op_on_table_finish(tableName, timeout)
+      if (isCloudMode()) {
+        // Cloud uses a schema change job here; Local uses an asynchronous 
index change job.
+        wait_for_latest_op_on_table_finish(tableName, timeout)
+      } else {
+        wait_for_build_index_on_partition_finish(tableName, timeout)
+      }
 
       runMatchQueries()
     } finally {
     }
-}
\ No newline at end of file
+}


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

Reply via email to