Re: [BUG] recovery of prepared transactions during promotion can fail
Julian Markwort <julian.markwort@cybertec.at>
From: Julian Markwort <julian.markwort@cybertec.at>
To: Michael Paquier <michael@paquier.xyz>, Nathan Bossart <nathandbossart@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, pgsql-hackers@postgresql.org
Date: 2023-06-21T09:11:55Z
Lists: pgsql-hackers
Attachments
- 0001-test-promotion-with-prepared-transaction-and-archiving.patch (text/x-patch) patch 0001
First off, thanks for the quick reaction and reviews, I appreciate it. On Wed, 2023-06-21 at 14:14 +0900, Michael Paquier wrote: > But that won't connect work as the segment requested is now a partial > one in the primary's pg_wal, still the standby wants it. I think since 009_twophase.pl doesn't use archiving so far, it's not a good idea to enable it generally, for all those tests. It changes too much of the behaviour. > I think that it is better > for now to just undo has_archiving in has_archiving, and tackle the > coverage with a separate test, perhaps only for HEAD. I see you've already undone it. Attached is a patch for 009_twophase.pl to just try this corner case at the very end, so as not to influence other existing tests in suite. When I run this on REL_14_8 I get the error again, sort of as a sanity check... Kind regards Julian
Commits
-
Disable use of archiving in 009_twophase.pl
- 43090e1e7059 13.12 landed
- 2634926906de 14.9 landed
- bd78702ea17e 15.4 landed
- 8cca660b0bfb 16.0 landed
-
Enable archiving in recovery TAP test 009_twophase.pl
- c360594155e5 13.12 landed
- e6317d9b507c 14.9 landed
- a10be37254fe 15.4 landed
- 68cb5af46cd8 16.0 landed
-
Fix failure at promotion with 2PC transactions and archiving enabled
- 896012b88396 13.12 landed
- f663b009189f 14.9 landed
-
Postpone some end-of-recovery operations related to allowing WAL.
- 811051c2e7af 15.0 cited
-
Refactor some end-of-recovery code out of StartupXLOG().
- 6df1543abfed 15.0 cited