Re: Why is src/test/modules/committs/t/002_standby.pl flaky? - Mailing list pgsql-hackers

From Alexander Lakhin
Subject Re: Why is src/test/modules/committs/t/002_standby.pl flaky?
Date
Msg-id 5d507424-13ce-d19f-2f5d-ab4c6a987316@gmail.com
Whole thread Raw
In response to Re: Why is src/test/modules/committs/t/002_standby.pl flaky?  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Why is src/test/modules/committs/t/002_standby.pl flaky?
List pgsql-hackers
10.01.2022 12:40, Thomas Munro wrote:
> This is super quick-and-dirty code (and doesn't handle some errors or
> socket changes correctly), but does it detect the closed socket?
Yes, it fixes the behaviour and makes the 002_standby test pass (100 of
100 iterations). I'm yet to find out whether the other
WaitLatchOrSocket' users (e. g. postgres_fdw) can suffer from the
disconnected socket state, but this approach definitely works for
walreceiver.

Best regards,
Alexander



pgsql-hackers by date:

Previous
From: Ronan Dunklau
Date:
Subject: Matching domains-over-enums to anyenum types
Next
From: Tom Lane
Date:
Subject: Re: Matching domains-over-enums to anyenum types