Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](test)Fix build index fault test (#38736) #38762

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,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}; """
Expand All @@ -233,13 +234,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}; """
Expand Down
Loading