Re: walsender bug: stuck during shutdown

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Chloe Dives <Chloe(dot)Dives(at)cantabcapital(dot)com>, Chris Wilson <chris(dot)wilson(at)cantabcapital(dot)com>
Subject: Re: walsender bug: stuck during shutdown
Date: 2020-11-25 07:32:12
Message-ID: 64cf649c-1686-4ddd-1eed-ef381d6308ba@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020/11/25 0:07, Alvaro Herrera wrote:
> Hello,
>
> On 2020-Nov-24, Fujii Masao wrote:
>
>> Thanks for working on this!
>> Could you tell me the discussion thread where Chloe Dives reported the issue to?
>> Sorry I could not find that..
>
> It was not public -- sorry I didn't make that clear.
>
>> I'd like to see the procedure to reproduce the issue.
>
> Here's the script.

Thanks!

But whether MyWalSnd->write is InvalidRecPtr or not, if it's behind sentPtr,
walsender should keep waiting for the ack to all the sent message to be
replied, i.e., isn't this expected behavior of normal shutdown? That is,
if we want to shutdown walsender even when the client side doesn't
reply message, immediate shutdown should be used or the client side
should be terminated, instead?

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Luc Vlaming 2020-11-25 07:43:03 Re: Parallel plans and "union all" subquery
Previous Message Peter Smith 2020-11-25 07:24:06 Re: [HACKERS] logical decoding of two-phase transactions