From: Alexander Lakhin <exclusion@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill
Date: Thu, 8 Oct 2026 22:00:00 +0300
Message-ID: <c011d010-d227-4f27-b229-e9e0f2b668e0@gmail.com> (raw)
In-Reply-To: <CAHGQGwFvuGE5cJJfTFtaYY855=3pmuiczAd13JvcpTVWnUVgFg@mail.gmail.com>
References: <e7abd282-655d-495e-94c9-e38a58917ebf@gmail.com>
<CAHGQGwFvuGE5cJJfTFtaYY855=3pmuiczAd13JvcpTVWnUVgFg@mail.gmail.com>
Hello Fujii-san,
07.10.2026 19:46, Fujii Masao wrote:
> On Wed, Oct 7, 2026 at 1:00 PM Alexander Lakhin<exclusion@gmail.com> wrote:
>> It looks like the same race condition was fixed in 022_crash_temp_files.pl
>> by e37ad5fa4 two years before 041_checkpoint_at_promote.pl appeared: [2].
> I tried creating the patch based on that fix. How about the attached patch?
Your patch works for me test-wise. The same test loop passed 100+
iterations successfully. Thank you for paying attention to this!
Best regards,
Alexander
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-hackers@postgresql.org
Cc: exclusion@gmail.com, masao.fujii@gmail.com, michael@paquier.xyz
Subject: Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill
In-Reply-To: <c011d010-d227-4f27-b229-e9e0f2b668e0@gmail.com>
References: <e7abd282-655d-495e-94c9-e38a58917ebf@gmail.com> <CAHGQGwFvuGE5cJJfTFtaYY855=3pmuiczAd13JvcpTVWnUVgFg@mail.gmail.com> <c011d010-d227-4f27-b229-e9e0f2b668e0@gmail.com>
* 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