pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ignore server-side delays when enforcing wal_sender_timeout.
Date: Sat, 01 Sep 2018 06:03:35 +0000
Message-ID: <E1fvz0R-0007D2-MO@gemulon.postgresql.org> (raw)

Ignore server-side delays when enforcing wal_sender_timeout.

Healthy clients of servers having poor I/O performance, such as
buildfarm members hamster and tern, saw unexpected timeouts.  That
disagreed with documentation.  This fix adds one gettimeofday() call
whenever ProcessRepliesIfAny() finds no client reply messages.
Back-patch to 9.4; the bug's symptom is rare and mild, and the code all
moved between 9.3 and 9.4.

Discussion: https://postgr.es/m/20180826034600.GA1105084@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ab0ed6153a58294143d6d66ec5f3471477c59d57

Modified Files
--------------
src/backend/replication/walsender.c | 64 +++++++++++++++++++++----------------
1 file changed, 36 insertions(+), 28 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1fvz0R-0007D2-MO@gemulon.postgresql.org>
Permalink:  ../E1fvz0R-0007D2-MO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fvz0R-0007D2-MO@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Ignore server-side delays when enforcing wal_sender_timeout.
  In-Reply-To: <E1fvz0R-0007D2-MO@gemulon.postgresql.org>
  References: <E1fvz0R-0007D2-MO@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