Re: BUG #15617: walsender hang if sync replica disconnected fromnetwork - Mailing list pgsql-bugs

From Evgeniy Efimkin
Subject Re: BUG #15617: walsender hang if sync replica disconnected fromnetwork
Date
Msg-id C3C17F3D-AD38-4BDC-BA6D-9FC3096333FD@yandex-team.ru
Whole thread Raw
In response to BUG #15617: walsender hang if sync replica disconnected from network  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #15617: walsender hang if sync replica disconnected from network
List pgsql-bugs
Hi!
I reproduced it.
1. Make some write load on master: `pgbench -i -s 100000 testdb`
2. On sync replica drop output connections, while pgbench init database: `ip6tables -A OUTPUT -p tcp --dport 5432 -j
DROP`
3. Until was_sender_timeout reached, i send SIGHUB on master: `select pg_reload_conf();`
After that walsender forever stay in WaitEventSetWait, because no timeout

src/backend/libpq/be-secure.c:273
WaitEventSetWait(FeBeWaitSet, -1 /* no timeout */ , &event, 1,
                 WAIT_EVENT_CLIENT_READ);

pgsql-bugs by date:

Previous
From: Alex
Date:
Subject: Re: BUG #15618: Duplicating a join clause breaks index use
Next
From: Rusty Conover
Date:
Subject: Mixing quoted mixed case column names and non quoted constraintsdefinitions in CREATE TABLE causes an error