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

airborne pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new b1401b202e3 [test](inverted index) enhace test_build_index case for 
quickly finished jobs #42150 (#42187)
b1401b202e3 is described below

commit b1401b202e3875a25cf10fa28ea4f51a71818eda
Author: airborne12 <airborn...@gmail.com>
AuthorDate: Mon Oct 21 17:08:53 2024 +0800

    [test](inverted index) enhace test_build_index case for quickly finished 
jobs #42150 (#42187)
    
    cherry pick from #42150
---
 .../suites/inverted_index_p0/index_change/test_build_index.groovy     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/regression-test/suites/inverted_index_p0/index_change/test_build_index.groovy 
b/regression-test/suites/inverted_index_p0/index_change/test_build_index.groovy
index 3b15c07260e..66829f03370 100644
--- 
a/regression-test/suites/inverted_index_p0/index_change/test_build_index.groovy
+++ 
b/regression-test/suites/inverted_index_p0/index_change/test_build_index.groovy
@@ -97,7 +97,7 @@ suite("test_build_index", "inverted_index"){
             }
             if (alter_res.size() > 0) {
                 def last_job_state = alter_res[alter_res.size()-1][7];
-                if (last_job_state == "RUNNING") {
+                if (last_job_state == "RUNNING" || last_job_state == 
"FINISHED") {
                     logger.info(table_name + " last index job running, state: 
" + last_job_state + ", detail: " + alter_res)
                     return last_job_state;
                 }
@@ -181,7 +181,7 @@ suite("test_build_index", "inverted_index"){
     // BUILD INDEX and expect state is RUNNING
     sql """ BUILD INDEX idx_comment ON ${tableName} """
     def state = wait_for_last_build_index_on_table_running(tableName, timeout)
-    if (state != "SKIPPED") {
+    if (state == "RUNNING") {
         def result = sql """ SHOW BUILD INDEX WHERE TableName = "${tableName}" 
ORDER BY JobId """
         assertEquals(result[result.size()-1][1], tableName)
         assertTrue(result[result.size()-1][3].contains("ADD INDEX"))


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

Reply via email to