pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: kingpin867@gmail.com
Cc: tgl@sss.pgh.pa.us
Cc: pgsql-general@lists.postgresql.org
Subject: Re: walreceiver termination
Date: Fri, 08 May 2020 09:56:03 +0900 (JST)
Message-ID: <20200508.095603.1336764899960166654.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <CAE39h22d4-AcqpQaaN8NXA-zTDXM6i=joBjJtnaoB0706vFrNw@mail.gmail.com>
References: <10995.1587672413@sss.pgh.pa.us>
	<CAE39h23=1sg0zDopX2tm8ggz1Axh60RiTNzR2G8YpVLB52RPww@mail.gmail.com>
	<CAE39h22d4-AcqpQaaN8NXA-zTDXM6i=joBjJtnaoB0706vFrNw@mail.gmail.com>

Hello.

At Mon, 4 May 2020 09:09:15 -0500, Justin King <kingpin867@gmail.com> wrote in 
> Would there be anyone that might be able to help troubleshoot this
> issue -- or at least give me something that would be helpful to look
> for?
> 
> https://www.postgresql.org/message-id/flat/CAGH8ccdWLLGC7qag5pDUFbh96LbyzN_toORh2eY32-2P1%3Dtifg%40m...
> https://www.postgresql.org/message-id/flat/CANQ55Tsoa6%3Dvk2YkeVUN7qO-2YdqJf_AMVQxqsVTYJm0qqQQuw%40m...
> https://dba.stackexchange.com/questions/116569/postgresql-docker-incorrect-resource-manager-data-che...
> 
> I'm not the first one to report something similar and all the
> complaints have a different filesystem in common -- particularly ZFS
> (or btrfs, in the bottom case).  Is there anything more we can do here
> to help narrow down this issue?  I'm happy to help, but I honestly
> wouldn't even know where to begin.

The sendto() call at the end of your strace output is "close
connecion" request to wal sender and normally should be followed by
close() and kill().  If it is really the last strace output, the
sendto() is being blocked with buffer-full.

My diagnosis of the situation is that your replication connection had
a trouble and the TCP session is broken in the way wal receiver
couldn't be aware of the breakage.  As the result feedback message
packets from wal receiver were detained in tcp send buffer then
finally the last sendto() was blocked while sending the
close-connection message.

If it happens constantly, routers or firewalls between the primary and
standby may be discarding sessions inadvertantly.

I'm not sure how ZFS can be involved in this trouble, though.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center





view thread (8+ messages)

Message-ID: <20200508.095603.1336764899960166654.horikyota.ntt@gmail.com>
Permalink:  ../20200508.095603.1336764899960166654.horikyota.ntt@gmail.com/
Also on:    postgresql.org/message-id/20200508.095603.1336764899960166654.horikyota.ntt@gmail.com

 · 

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-general@postgresql.org
  Cc: horikyota.ntt@gmail.com, kingpin867@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: walreceiver termination
  In-Reply-To: <20200508.095603.1336764899960166654.horikyota.ntt@gmail.com>
  References: <10995.1587672413@sss.pgh.pa.us> <CAE39h23=1sg0zDopX2tm8ggz1Axh60RiTNzR2G8YpVLB52RPww@mail.gmail.com> <CAE39h22d4-AcqpQaaN8NXA-zTDXM6i=joBjJtnaoB0706vFrNw@mail.gmail.com> <20200508.095603.1336764899960166654.horikyota.ntt@gmail.com>

* 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