Skip to content

Commit

Permalink
[Regression](inverted index) fix build index case for wrong debug point
Browse files Browse the repository at this point in the history
#38112 (#38649)

cherry pick from #38112
  • Loading branch information
airborne12 authored Aug 1, 2024
1 parent bfb2ad4 commit 4ea879e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ suite("test_index_builder_drop_index_fault_injection", "nonConcurrent") {
assertEquals(show_result[3].Key_name, "index_k5")

try {
GetDebugPoint().enableDebugPointForAllBEs("segment_iterator._read_columns_by_index", [indexes_count: 3])
GetDebugPoint().enableDebugPointForAllBEs("index_builder.update_inverted_index_info.drop_index", [indexes_count: 3])
sql "DROP INDEX index_int ON ${indexTbName}"
show_result = sql_return_maparray "show index from ${indexTbName}"
logger.info("show index from " + indexTbName + " result: " + show_result)
Expand All @@ -44,7 +44,7 @@ suite("test_index_builder_drop_index_fault_injection", "nonConcurrent") {
}

try {
GetDebugPoint().enableDebugPointForAllBEs("segment_iterator._read_columns_by_index", [indexes_count: 2])
GetDebugPoint().enableDebugPointForAllBEs("index_builder.update_inverted_index_info.drop_index", [indexes_count: 2])
sql "DROP INDEX index_str_k2 ON ${indexTbName}"
show_result = sql_return_maparray "show index from ${indexTbName}"
logger.info("show index from " + indexTbName + " result: " + show_result)
Expand All @@ -56,7 +56,7 @@ suite("test_index_builder_drop_index_fault_injection", "nonConcurrent") {
}

try {
GetDebugPoint().enableDebugPointForAllBEs("segment_iterator._read_columns_by_index", [indexes_count: 1])
GetDebugPoint().enableDebugPointForAllBEs("index_builder.update_inverted_index_info.drop_index", [indexes_count: 1])
sql "DROP INDEX index_str_k4 ON ${indexTbName}"
show_result = sql_return_maparray "show index from ${indexTbName}"
logger.info("show index from " + indexTbName + " result: " + show_result)
Expand All @@ -67,7 +67,7 @@ suite("test_index_builder_drop_index_fault_injection", "nonConcurrent") {
}

try {
GetDebugPoint().enableDebugPointForAllBEs("segment_iterator._read_columns_by_index", [indexes_count: 0])
GetDebugPoint().enableDebugPointForAllBEs("index_builder.update_inverted_index_info.drop_index", [indexes_count: 0])
sql "DROP INDEX index_k5 ON ${indexTbName}"
show_result = sql_return_maparray "show index from ${indexTbName}"
logger.info("show index from " + indexTbName + " result: " + show_result)
Expand Down

0 comments on commit 4ea879e

Please sign in to comment.