Re: Slow catchup of 2PC (twophase) transactions on replica in LR
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: Ajin Cherian <itsajin@gmail.com>, Давыдов Виталий <v.davydov@postgrespro.ru>, Heikki Linnakangas <hlinnaka@iki.fi>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-04T06:55:18Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix random failure in 021_twophase.
- 0dcea330babd 18.0 landed
-
Allow altering of two_phase option of a SUBSCRIPTION.
- 1462aad2e447 18.0 landed
-
Doc: use true|false rather than on|off for "failover" option
- fa65a022db26 17.0 cited
-
Support an optional asynchronous commit mode, in which we don't flush WAL
- 4a78cdeb6b59 8.3.0 cited
On Mon, Apr 22, 2024 at 2:26 PM Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com> wrote: > ``` > > It succeeds if force_alter is also expressly set. Prepared transactions will be > aborted at that time. > > ``` > subscriber=# ALTER SUBSCRIPTION sub SET (two_phase = off, force_alter = on); > ALTER SUBSCRIPTION > Isn't it better to give a Notice when force_alter option leads to the rollback of already prepared transactions? I have another question on the latest 0001 patch: + /* + * Stop all the subscription workers, just in case. + * Workers may still survive even if the subscription is + * disabled. + */ + logicalrep_workers_stop(subid); In which case the workers will survive when the subscription is disabled? -- With Regards, Amit Kapila.