pgsql: Fix race condition in transaction timeout TAP tests

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix race condition in transaction timeout TAP tests
Date: 2024-03-15 12:50:41
Message-ID: E1rl71F-003vnb-G0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-03-15 12:54:34 Re: pgsql: Add TAP tests for timeouts
Previous Message Andrey M. Borodin 2024-03-15 12:25:24 Re: pgsql: Add TAP tests for timeouts