Re: BUG #15617: walsender hang if sync replica disconnected from network

From: Evgeniy Efimkin <efimkin(at)yandex-team(dot)ru>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15617: walsender hang if sync replica disconnected from network
Date: 2019-02-02 17:41:29
Message-ID: C3C17F3D-AD38-4BDC-BA6D-9FC3096333FD@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rusty Conover 2019-02-03 19:03:55 Mixing quoted mixed case column names and non quoted constraints definitions in CREATE TABLE causes an error
Previous Message Alex 2019-02-02 15:53:30 Re: BUG #15618: Duplicating a join clause breaks index use