Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test](build index) enhance build index with clone test case with ret…
…ry logic (apache#42348) ## Proposed changes Fix case error as below ``` Exception in fault_injection_p0/test_build_index_with_clone_fault.groovy(line 89): ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "${tablet.TabletId}", "backend_id" = "${tablet.BackendId}", "status" = "drop"); """ // create index on table sql """ create index idx_k2 on ${tbl}(k2) using inverted """ sql """ build index idx_k2 on ${tbl} """ // sleep 5s to wait for the build index job report table is unstable sleep(5000) def show_build_index = sql_return_maparray("show build index where TableName = \"${tbl}\" ORDER BY JobId DESC LIMIT 1") assertEquals('WAITING_TXN', show_build_index[0].State) assertEquals('table is unstable', show_build_index[0].Msg) ^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^ def state = wait_for_last_build_index_on_table_finish(tbl, timeout) assertEquals(state, "FINISHED") } finally { GetDebugPoint().disableDebugPointForAllBEs("EngineCloneTask.wait_clone") } } Exception: org.opentest4j.AssertionFailedError: expected: <table is unstable> but was: <> ```
- Loading branch information