Skip to content

Commit

Permalink
[fix](test) fix for test_build_index_fault case (apache#46692)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzxl1993 authored Jan 9, 2025
1 parent c206a6b commit 1258ae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ suite("test_build_index_fault", "inverted_index, nonConcurrent,p2"){

// BUILD INDEX with error injection
sql """ ALTER TABLE ${tableName} ADD INDEX idx_url (`url`) USING INVERTED """
GetDebugPoint().enableDebugPointForAllBEs("IndexBuilder::handle_single_rowset")
GetDebugPoint().enableDebugPointForAllBEs("IndexBuilder::handle_single_rowset_iterator_next_batch_error")
sql """ BUILD INDEX idx_url ON ${tableName}; """
state = wait_for_last_build_index_on_table_finish(tableName, timeout)
assertEquals("CANCELLED", state)
// check data
qt_count7 """ SELECT COUNT() from ${tableName}; """

GetDebugPoint().disableDebugPointForAllBEs("IndexBuilder::handle_single_rowset")
GetDebugPoint().disableDebugPointForAllBEs("IndexBuilder::handle_single_rowset_iterator_next_batch_error")
// rebuild index
sql """ BUILD INDEX idx_url ON ${tableName}; """
state = wait_for_last_build_index_on_table_finish(tableName, timeout)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ suite("test_build_index_exception_fault_injection", "nonConcurrent,p2") {
"IndexBuilder::handle_single_rowset_support_inverted_index",
"IndexBuilder::handle_single_rowset_index_column_writer_create_error",
"IndexBuilder::handle_single_rowset_create_iterator_error",
"IndexBuilder::handle_single_rowset",
"IndexBuilder::handle_single_rowset_iterator_next_batch_error",
"IndexBuilder::handle_single_rowset_write_inverted_index_data_error",
"IndexBuilder::handle_single_rowset_index_build_finish_error",
Expand Down

0 comments on commit 1258ae3

Please sign in to comment.