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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new da377e98cf0 [Pick 2.1](inverted index) enhace test_build_index case 
for quickly finished jobs (#42151)
da377e98cf0 is described below

commit da377e98cf09c34ce265b95e63371af46f075857
Author: airborne12 <[email protected]>
AuthorDate: Mon Oct 21 15:52:57 2024 +0800

    [Pick 2.1](inverted index) enhace test_build_index case for quickly 
finished jobs (#42151)
    
    ## Proposed changes
    
    bp: #42150
---
 regression-test/suites/inverted_index_p0/test_build_index.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regression-test/suites/inverted_index_p0/test_build_index.groovy 
b/regression-test/suites/inverted_index_p0/test_build_index.groovy
index 63de0db38b4..b2ac2d0f3a8 100644
--- a/regression-test/suites/inverted_index_p0/test_build_index.groovy
+++ b/regression-test/suites/inverted_index_p0/test_build_index.groovy
@@ -94,7 +94,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;
                 }
@@ -178,7 +178,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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to