pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Close yet another race condition in replication slot test code
5+ messages / 2 participants
[nested] [flat]
* pgsql: Close yet another race condition in replication slot test code
@ 2021-07-29 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 5+ messages in thread
From: Alvaro Herrera @ 2021-07-29 21:11 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Close yet another race condition in replication slot test code
Buildfarm shows that this test has a further failure mode when a
checkpoint starts earlier than expected, so we detect a "checkpoint
completed" line that's not the one we want. Change the config to try
and prevent this.
Per buildfarm
While at it, update one comment that was forgotten in commit
d18e75664a2f.
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20210729.162038.534808353849568395.horikyota.ntt@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ce197e91d02ca38ac1b956a3e0c11596099e7893
Modified Files
--------------
src/backend/access/transam/xlog.c | 2 +-
src/test/recovery/t/019_replslot_limit.pl | 14 ++++++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Close yet another race condition in replication slot test code
@ 2021-07-29 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 5+ messages in thread
From: Alvaro Herrera @ 2021-07-29 21:11 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Close yet another race condition in replication slot test code
Buildfarm shows that this test has a further failure mode when a
checkpoint starts earlier than expected, so we detect a "checkpoint
completed" line that's not the one we want. Change the config to try
and prevent this.
Per buildfarm
While at it, update one comment that was forgotten in commit
d18e75664a2f.
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20210729.162038.534808353849568395.horikyota.ntt@gmail.com
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f951f6f69c7e77acdd04776168126f00e269dcfb
Modified Files
--------------
src/backend/access/transam/xlog.c | 2 +-
src/test/recovery/t/019_replslot_limit.pl | 14 ++++++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Close yet another race condition in replication slot test code
@ 2021-07-29 21:15 Tom Lane <tgl@sss.pgh.pa.us>
parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2021-07-29 21:15 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers@lists.postgresql.org
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Close yet another race condition in replication slot test code
Shouldn't that have gone into v13, too?
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Close yet another race condition in replication slot test code
@ 2021-07-29 21:20 Alvaro Herrera <alvherre@alvh.no-ip.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Alvaro Herrera @ 2021-07-29 21:20 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
On 2021-Jul-29, Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> > Close yet another race condition in replication slot test code
>
> Shouldn't that have gone into v13, too?
Oh, oops, yeah, I confused how recent this feature is. Will do in a
minute.
--
Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/
"Always assume the user will do much worse than the stupidest thing
you can imagine." (Julien PUYDT)
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Close yet another race condition in replication slot test code
@ 2021-07-29 21:26 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 5+ messages in thread
From: Alvaro Herrera @ 2021-07-29 21:26 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Close yet another race condition in replication slot test code
Buildfarm shows that this test has a further failure mode when a
checkpoint starts earlier than expected, so we detect a "checkpoint
completed" line that's not the one we want. Change the config to try
and prevent this.
Per buildfarm
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20210729.162038.534808353849568395.horikyota.ntt@gmail.com
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/41d27ee7b870c1a1213704d3c020a01eb55799b0
Modified Files
--------------
src/test/recovery/t/019_replslot_limit.pl | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2021-07-29 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29 21:11 pgsql: Close yet another race condition in replication slot test code Alvaro Herrera <alvherre@alvh.no-ip.org>
2021-07-29 21:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-07-29 21:20 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
2021-07-29 21:11 pgsql: Close yet another race condition in replication slot test code Alvaro Herrera <alvherre@alvh.no-ip.org>
2021-07-29 21:26 pgsql: Close yet another race condition in replication slot test code Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox