Make crash_recovery_dtm test stable.
crash_recovery_dtm test has a scenario which intends to test if QE undergoes crash recovery after writing prepare record but before responding to QD, the abort processing is completed fine. For the same test used GUC `debug_abort_after_segment_prepared` to PANIC all the QE at that specific point for DELETE. Next test executes SELECT query to validate the DELETE was aborted. But flakiness comes if this SELECT query gets executed while PANIC processing is still underway as test had no way to wait till PANIC and restart completed before running the SELECT. Now the test instead uses fault injector to sleep at intended point and uses pg_ctl restart -w to make sure recovery is completed and only after that the SELECT query will be executed. So, as a result removing the test only GUC `debug_abort_after_segment_prepared` and related code for it.
Showing
想要评论请 注册 或 登录