]> granicus.if.org Git - postgresql/commit
Fix race condition in recently-added TAP test for recovery consistency
authorMichael Paquier <michael@paquier.xyz>
Thu, 14 Mar 2019 03:41:45 +0000 (12:41 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 14 Mar 2019 03:41:45 +0000 (12:41 +0900)
commit364298be22090769da14aa749fe730cf16ed3c2c
tree8a447cbe522f19189d2b48f28f37cedccba5f36a
parentc015f853bf5958dd7562a17952df33a9d115e65f
Fix race condition in recently-added TAP test for recovery consistency

A couple of queries are run on the primary to create and fill in a test
table, which gets checked on the standby afterwards.  However the test
was not waiting for the confirmation that the necessary records have
been replayed on the standby, leading to spurious failures.

Per buildfarm member loach.  Thanks to Thomas Munro for the report and
Tom Lane for the failure analysis.

Discussion: https://postgr.es/m/CA+hUKGLUpqG52xtriUz5RpmeKPoEfNxNc-CginG+Cx+X2-Ycew@mail.gmail.com
src/test/recovery/t/016_min_consistency.pl