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

dataroaring 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 6c1fe92fa33 [fix](test)Fix build index fault test (#38736)
6c1fe92fa33 is described below

commit 6c1fe92fa3358dea19fc318e24458ff46de92dfc
Author: qiye <[email protected]>
AuthorDate: Fri Aug 2 11:36:23 2024 +0800

    [fix](test)Fix build index fault test (#38736)
---
 .../fault_injection_p0/test_build_index_fault.groovy       | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/regression-test/suites/fault_injection_p0/test_build_index_fault.groovy 
b/regression-test/suites/fault_injection_p0/test_build_index_fault.groovy
index 84e0bae24ad..1648cdd726b 100644
--- a/regression-test/suites/fault_injection_p0/test_build_index_fault.groovy
+++ b/regression-test/suites/fault_injection_p0/test_build_index_fault.groovy
@@ -219,14 +219,15 @@ suite("test_build_index_fault", "inverted_index, 
nonConcurrent,p2"){
     
GetDebugPoint().enableDebugPointForAllBEs("fault_inject::BetaRowset::link_files_to::_link_inverted_index_file")
     sql """ BUILD INDEX idx_title ON ${tableName}; """
     state = wait_for_last_build_index_on_table_finish(tableName, timeout)
-    assertEquals("wait_timeout", state)
+    assertEquals("CANCELLED", state)
     // check data
     qt_count5 """ SELECT COUNT() from ${tableName}; """
 
     // disable error_inject for BetaRowset link inverted index file and expect 
state is FINISHED
     
GetDebugPoint().disableDebugPointForAllBEs("fault_inject::BetaRowset::link_files_to::_link_inverted_index_file")
-    // timeout * 10 for possible fe schedule delay
-    state = wait_for_last_build_index_on_table_finish(tableName, timeout * 10)
+    // rebuild index
+    sql """ BUILD INDEX idx_title ON ${tableName}; """
+    state = wait_for_last_build_index_on_table_finish(tableName, timeout)
     assertEquals("FINISHED", state)
     // check data
     qt_count6 """ SELECT COUNT() from ${tableName}; """
@@ -236,13 +237,14 @@ suite("test_build_index_fault", "inverted_index, 
nonConcurrent,p2"){
     
GetDebugPoint().enableDebugPointForAllBEs("IndexBuilder::handle_single_rowset")
     sql """ BUILD INDEX idx_url ON ${tableName}; """
     state = wait_for_last_build_index_on_table_finish(tableName, timeout)
-    assertEquals("wait_timeout", state)
+    assertEquals("CANCELLED", state)
     // check data
     qt_count7 """ SELECT COUNT() from ${tableName}; """
 
     
GetDebugPoint().disableDebugPointForAllBEs("IndexBuilder::handle_single_rowset")
-    // timeout * 10 for possible fe schedule delay
-    state = wait_for_last_build_index_on_table_finish(tableName, timeout * 10)
+    // rebuild index
+    sql """ BUILD INDEX idx_url ON ${tableName}; """
+    state = wait_for_last_build_index_on_table_finish(tableName, timeout)
     assertEquals("FINISHED", state)
     // check data
     qt_count8 """ SELECT COUNT() from ${tableName}; """


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

Reply via email to