Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill
Date: 2026-10-08 19:00:00
Message-ID: c011d010-d227-4f27-b229-e9e0f2b668e0@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Fujii-san,

07.10.2026 19:46, Fujii Masao wrote:
> On Wed, Oct 7, 2026 at 1:00 PM Alexander Lakhin<exclusion(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yash Jadhav 2026-10-08 19:00:04 Re: [PATCH] Add memory/disk usage for Function Scan nodes in EXPLAIN
Previous Message Andrey Borodin 2026-10-08 18:53:17 Re: Do we want to solve reload/config races more generally? (was: Postmaster crashes on SIGHUP when oauth_validator_libraries holds only whitespace)