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/)
diff --git a/src/test/recovery/t/031_recovery_conflict.pl
b/src/test/recovery/t/031_recovery_conflict.pl
index 1f91a99037a..ae58c30d9bf 100644
--- a/src/test/recovery/t/031_recovery_conflict.pl
+++ b/src/test/recovery/t/031_recovery_conflict.pl
@@ -322,6 +322,7 @@ is( $node_standby->safe_psql($test_db, qq[SELECT count(*)
FROM $table_pin;]),
# Start a reader on $psql_standby that holds a pin on $table_pin and gets
# stuck in ClientWrite because we stop pumping its stdout pipe.
my $clientwrite_pid = $psql_standby->query_safe('SELECT pg_backend_pid();');
+$psql_standby->query_safe('SET debug_parallel_query TO off');
$psql_standby->{stdin} .= qq[
COPY (
SELECT t.id, g, repeat('x', 4000)