pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix race condition in transaction timeout TAP tests
Date: Fri, 15 Mar 2024 12:50:41 +0000
Message-ID: <E1rl71F-003vnb-G0@gemulon.postgresql.org> (raw)

Fix race condition in transaction timeout TAP tests

The interruption handler within the injection point can get stuck in an
infinite loop while handling transaction timeout. To avoid this situation
we reset the timeout flag before invoking the injection point.

Author: Alexander Korotkov
Reviewed-by: Andrey Borodin
Discussion: https://postgr.es/m/ZfPchPC6oNN71X2J%40paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c2eda67f55a8a263820d12aaeaa7e1dfe7406ee

Modified Files
--------------
src/backend/tcop/postgres.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)



view thread (2+ messages)

Message-ID: <E1rl71F-003vnb-G0@gemulon.postgresql.org>
Permalink:  ../E1rl71F-003vnb-G0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rl71F-003vnb-G0@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix race condition in transaction timeout TAP tests
  In-Reply-To: <E1rl71F-003vnb-G0@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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