| From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
|---|---|
| To: | Andrey Borodin <x4mmm(at)yandex-team(dot)ru> |
| Cc: | Anthony Hsu <erwaman(at)gmail(dot)com>, Xuneng Zhou <xunengzhou(at)gmail(dot)com>, João Rito <joaovictor(dot)rito(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Dmytro Astapov <dastapov(at)gmail(dot)com>, pgsql-hackers mailing list <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
| Subject: | Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin |
| Date: | 2026-11-27 12:27:04 |
| Message-ID: | awl1hvCD4zLn2eLP@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 2026-Nov-27, Andrey Borodin wrote:
> The new test is failing on master [0] and REL_19_STABLE [1].
Actually, in the buildfarm all the branches are failing in several
machines.
> On macOS,
> with debug_parallel_query=regress, the COPY's parallel worker is
> canceled and replay resumes before the second reader connects. On
> Windows, the first COPY is canceled before the second cursor is
> established. The expected cancellation of the second reader therefore
> never happens.
>
> Could we disable forced parallelism for this COPY and ensure the first
> pin remains held until the second cursor has fetched? The logs point to
> a test synchronization problem.
I couldn't reproduce the problems locally or in my CI (the macOS runs
just die). Is this patch sufficient? I suspect not ... If not, I'm
inclined to wrap the whole test in a SKIP block until a complete fix is
developed.
(There's also a 50_000 us timeout which is likely insufficient in slow
machines ...)
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"At least to kernel hackers, who really are human, despite occasional
rumors to the contrary" (corbet, https://lwn.net/Articles/10921/)
| Attachment | Content-Type | Size |
|---|---|---|
| q | text/plain | 701 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2026-11-27 12:42:02 | Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow |
| Previous Message | Andrey Borodin | 2026-11-27 12:19:07 | Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin |