From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Etsuro Fujita <efujita@postgresql.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: postgres_fdw: Fix handling of pending asynchronous requests.
Date: Sat, 31 Jul 2021 12:41:16 -0400
Message-ID: <1255271.1627749676@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmGK15Lrw4sJ6sZU+NoAW2_D1rGkZ1vLuR3afyUdbrtBPdy+g@mail.gmail.com>
References: <E1m9NYt-0005Z4-OG@gemulon.postgresql.org>
<YQP0UPT8KmPiHTMs@paquier.xyz>
<CAPmGK14JW48OFCmsweuXcJ99JWr8b7fBu36ReMK4DxJ8rPiD4Q@mail.gmail.com>
<CAPmGK15Lrw4sJ6sZU+NoAW2_D1rGkZ1vLuR3afyUdbrtBPdy+g@mail.gmail.com>
Etsuro Fujita <etsuro.fujita@gmail.com> writes:
> I couldn’t reproduce this in my environment, but I noticed this, which
> didn’t happen in my environment: the case of delivering notifications
> to both of the parent async-capable nodes in ExecAppendAsyncEventWait
> when processing the added test case query. In that case, doing
> postgresForeignAsyncNotify for the first parent async-capable node
> would invoke process_pending_request on the second one when executing
> its initplan, which would lead to the assertion failure when doing
> postgresForeignAsyncNotify for the second one. :-( I think
> postgresForeignAsyncNotify would need the same treatment as for
> postgresForeignAsyncConfigureWait, like the attached.
I tried this patch on a spare machine that seems prone to showing
the failure: on HEAD, postgres_fdw's installcheck failed 3 times
in 4 attempts. With the patch, it's gotten through 23 consecutive
tries without a failure. So this is at least way better ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, etsuro.fujita@gmail.com, michael@paquier.xyz, efujita@postgresql.org
Subject: Re: pgsql: postgres_fdw: Fix handling of pending asynchronous requests.
In-Reply-To: <1255271.1627749676@sss.pgh.pa.us>
References: <E1m9NYt-0005Z4-OG@gemulon.postgresql.org> <YQP0UPT8KmPiHTMs@paquier.xyz> <CAPmGK14JW48OFCmsweuXcJ99JWr8b7fBu36ReMK4DxJ8rPiD4Q@mail.gmail.com> <CAPmGK15Lrw4sJ6sZU+NoAW2_D1rGkZ1vLuR3afyUdbrtBPdy+g@mail.gmail.com> <1255271.1627749676@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox