Re: Race conditions in

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, hlinnaka(at)iki(dot)fi, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Race conditions in
Date: 2022-02-23 02:06:24
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


I think I did find a bug related to the test, but afaics not the cause of the
test failures we're seeing. See

I don't think it's related to the problem of this thread, because the logs of
primary3 don't have a single mention of

(errmsg("terminating process %d to release replication slot \"%s\"",
active_pid, NameStr(slotname))));

On 2022-02-18 15:14:15 -0800, Andres Freund wrote:
> I'm running out of ideas for how to try to reproduce this. I think we might
> need some additional debugging information to get more information from the
> buildfarm.

> I'm thinking of adding log_min_messages=DEBUG2 to primary3, passing --verbose
> to pg_basebackup in $node_primary3->backup(...).
> It might also be worth adding DEBUG2 messages to ReplicationSlotShmemExit(),
> ReplicationSlotCleanup(), InvalidateObsoleteReplicationSlots().

Planning to commit something like the attached.


Andres Freund

Attachment Content-Type Size
v1-0001-Add-temporary-debug-info-to-help-debug-019_replsl.patch text/x-diff 4.5 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2022-02-23 02:06:28 Re: row filtering for logical replication
Previous Message Andres Freund 2022-02-23 01:56:29 Re: Race condition in InvalidateObsoleteReplicationSlots()