Skip to content

Commit

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

## Proposed changes

Fix wrong debug point in test case
  • Loading branch information
airborne12 committed Aug 1, 2024
1 parent 6c0fba4 commit 1d8d21a
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 1d8d21a

Please sign in to comment.