Fix test race between primary XLOG_RUNNING_XACTS and standby logical slot.
Noah Misch <noah@leadboat.com>
Fix test race between primary XLOG_RUNNING_XACTS and standby logical slot. Before the previous commit, the test could hang until LOG_SNAPSHOT_INTERVAL_MS (15s), until checkpoint_timeout (300s), or indefinitely. An indefinite hang was awfully improbable. It entailed the test reaching checkpoint_timeout before the DecodingContextFindStartpoint() of a CREATE SUBSCRIPTION, yet after the preceding WAL record. Back-patch to v16, which introduced the test. Bertrand Drouvot, reported by Noah Misch. Discussion: https://postgr.es/m/20240211010227.a2.nmisch@google.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/perl/PostgreSQL/Test/Cluster.pm | modified | +32 −14 |
| src/test/recovery/t/035_standby_logical_decoding.pl | modified | +2 −2 |
Discussion
- Why is subscription/t/031_column_list.pl failing so much? 31 messages · 2024-02-02 → 2024-03-07