model-writtenrun 2226 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C reported that kestrel's 021_twophase test could drop tap_sub before it replayed COMMIT PREPARED, and supplied both a delay-based reproducer and a fix that waits for both subscriptions and checks for leftover prepared transactions in #1.
- Michael Paquier accepted the diagnosis and fix, highlighted the diagnostic value of the additional pg_prepared_xacts check, and offered to commit it in #2.
- Amit Kapila endorsed the proposed fix in #3, having also contributed to the offline discussion acknowledged by Vignesh.
- Michael Paquier committed the attached fix unchanged as 52a1df85f2 and announced backpatching through PostgreSQL 15 in #4; the reproduction-only delay was not included.
- Vignesh reported successful buildfarm runs after the commit and said he would continue monitoring them in #5, leaving the fix landed with no outstanding revisions.