Behave Tablespace Tests: fix cleanup race condition
Without synchronous_commit = 'remote_apply' introduced in 9.6, there
is no guarantee that the mirrors have removed their tablespace
directories by the time the DROP TABLESPACE command returns.
We need those directories to no longer be in use by the mirrors
before removing them.
We are using the PL/PGSQL function
checkpoint_and_wait_for_replication_replay() from
src/test/walrep/sql/missing_xlog.sql to achieve the same semantics as
'remote_apply'.
Co-authored-by: NJacob Champion <pchampion@pivotal.io>
Showing
想要评论请 注册 或 登录