RE: BUG: Former primary node might stuck when started as a standby
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: 'Alexander Lakhin' <exclusion@gmail.com>, Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Aleksander Alekseev <aleksander@timescale.com>
Date: 2026-03-03T09:17:16Z
Lists: pgsql-hackers
Dear Alexander, > FWIW, 004_timeline_switch also failed the past month in the same way [2]. Thanks for the info. So I can provide the patch after the issue for 009_twophase.pl is fixed. For better understanding we may be able to fork new thread. > I've just tested 012_subtransactions.pl with the script I proposed at [3] > and it passed 100 iterations (because it performs $node_primary->stop; > before $node_standby->promote;, I suppose). I guess so. cluster::stop does the `pg_ctl stop -m fast` command. In this case the walsender waits till there are nothing to be sent, see WalSndLoop(). Do let me know if you have observed the similar failure here. Best regards, Hayato Kuroda FUJITSU LIMITED
Commits
-
Fix rare instability in recovery TAP test 004_timeline_switch
- 1346794feb77 14.23 landed
- 270e7b4ff519 15.18 landed
- 8e3c377e284a 16.14 landed
- 6fb8f424be05 17.10 landed
- 7185eddf0522 18.4 landed
- ea4744782b3f 19 (unreleased) landed
-
Fix rare instability in recovery TAP test 009_twophase
- bce98e49e8ac 14.23 landed
- be233b301e60 15.18 landed
- a7499ff5eb58 16.14 landed
- c81b10459bb8 17.10 landed
- 54e0a8fff145 18.4 landed
- ad8c86d22cbd 19 (unreleased) landed