Re: Logical WAL sender unresponsive during decoding commit - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Logical WAL sender unresponsive during decoding commit
Date
Msg-id CAA4eK1JFZo2BFoaCtm1y-x0U-xz+80qYDO9RnhyT25kT5mcuBg@mail.gmail.com
Whole thread Raw
In response to Re: Logical WAL sender unresponsive during decoding commit  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: Logical WAL sender unresponsive during decoding commit
List pgsql-hackers
On Tue, Aug 16, 2022 at 10:56 AM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>
> On Tue, Aug 16, 2022 at 2:08 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> >
> > On Tue, Aug 16, 2022 at 9:28 AM Andrey Borodin <x4mmm@yandex-team.ru> wrote:
> > >
> > > Hi hackers!
> > >
> > > Some time ago I've seen a hanging logical replication that was trying to send transaction commit after doing
tablepg_repack.
 
> > > I understand that those things do not mix well. Yet walsender was ignoring pg_terminate_backend() and I think
thisworth fixing.
 
> > > Can we add CHECK_FOR_INTERRUPTS(); somewhere in this backtrace?
> > >
> >
> > I think if we want to do this in this code path then it may be it is
> > better to add it in ReorderBufferProcessTXN where we are looping to
> > process each change.
>
> +1
>
> The same issue is recently reported[1] on -bugs and I proposed the
> patch that adds CHECK_FOR_INTERRUPTS() to the loop in
> ReorderBufferProcessTXN(). I think it should be backpatched.
>

I agree that it is better to backpatch this as well. Would you like to
verify if your patch works for all branches or if it need some tweaks?

-- 
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Propose a new function - list_is_empty
Next
From: Masahiko Sawada
Date:
Subject: Re: Logical WAL sender unresponsive during decoding commit