RE: Notify downstream to discard the streamed transaction which was aborted due to crash.

Поиск
Список
Период
Сортировка
От houzj.fnst@fujitsu.com
Тема RE: Notify downstream to discard the streamed transaction which was aborted due to crash.
Дата
Msg-id OS0PR01MB5716A83F73F46E53A3D382F294FB9@OS0PR01MB5716.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Notify downstream to discard the streamed transaction which was aborted due to crash.  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
On Friday, January 6, 2023 1:15 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> 
> On Fri, Jan 6, 2023 at 9:25 AM houzj.fnst@fujitsu.com <houzj.fnst@fujitsu.com>
> wrote:
> >
> >
> > To fix it, One idea is to send a stream abort message when we are
> > cleaning up crashed transaction on publisher(e.g. in
> > ReorderBufferAbortOld()). And here is a tiny patch which changes the
> > same. I have confirmed that the bug is fixed and all regression tests
> > pass. I didn't add a testcase because we need to make sure the crash
> > happens before all the WAL logged transactions data are decoded which
> doesn't seem easy to write a stable test for this.
> >
> 
> Your fix looks good to me. Have you tried this in PG-14 where it was
> introduced?

Yes, I have confirmed that PG-14 has the same problem and can be fixed after
applying the patch.

Best regards,
Hou zj

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: wake up logical workers after ALTER SUBSCRIPTION
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Notify downstream to discard the streamed transaction which was aborted due to crash.