Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gQMJD-00043e-Nf for pgsql-admin@arkaria.postgresql.org; Sat, 24 Nov 2018 01:00:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gQMJC-0005EZ-F8 for pgsql-admin@arkaria.postgresql.org; Sat, 24 Nov 2018 01:00:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gQMJB-0005EP-Rt for pgsql-admin@lists.postgresql.org; Sat, 24 Nov 2018 01:00:30 +0000 Received: from mtaout002-public.msg.strl.va.charter.net ([68.114.190.27]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gQMJ8-0006E7-Ie for pgsql-admin@lists.postgresql.org; Sat, 24 Nov 2018 01:00:28 +0000 Received: from impout004 ([68.114.189.19]) by mtaout002.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20181124010025.PWLU7360.mtaout002.msg.strl.va.charter.net@impout004>; Fri, 23 Nov 2018 19:00:25 -0600 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout004 with charter.net id 3d0E1z0083EE3TL01d0Eas; Fri, 23 Nov 2018 19:00:25 -0600 X-Authority-Analysis: v=2.2 cv=dc7w5Tfe c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=JHtHm7312UAA:10 a=Rh5JslpUAAAA:8 a=epTmVMiNAAAA:8 a=hZTjU4VTAAAA:8 a=DADFWMHah0oEEOCIvGQA:9 a=QEXdDO2ut3YA:10 a=oYbSRjCjYIgA:10 a=uOL0-2JTUHIA:10 a=CRjGpuKUiiIuQkCM3vJl:22 a=ndEWmUVY6Yapc0oHF_P4:22 a=GTR5BNS7dYzKATGfZafc:22 Received: from sauron.crazybean.net (sauron.crazybean.net [IPv6:2001:470:e117:3::36]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id a6751d31 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 23 Nov 2018 20:00:14 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: Logical wal receiver (background worker) not detecting when publisher node has died From: Rui DeSousa In-Reply-To: Date: Fri, 23 Nov 2018 20:00:13 -0500 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <849F7F83-090C-41F8-91B6-FF20E736B060@crazybean.net> References: To: Achilleas Mantzios X-Mailer: Apple Mail (2.3445.101.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 23, 2018, at 12:20 AM, Achilleas Mantzios = wrote: >=20 > Dear List, > Coming back from : = https://www.postgresql.org/message-id/ae8812c3-d138-73b7-537a-a273e15ef6e1= %40matrix.gatewaynet.com=20 >=20 > and having got absolutely no helpful answer from our infrastructure = people, I would like to ask : >=20 > Is it on earth possible that the primary (publisher node) has crushed = while on the subscriber node the logical wal receiver goes on happily = like there is no problem at all, no messages in log, no timeouts, acts = if nothing happen ? >=20 > (in the meantime the second standby instantly detected the crush of = the primary and immediately restarted re-connection attempts) >=20 Not that I can think of without it being a bug. If it happens again; you can try killing the WAL receiver session via = Postgres and if that fails then using tcpkill to terminate the session. It would be good to know the actual cause though and collect as much = information before terminating the session.=20 Interested; but not sure if it=E2=80=99s related: = https://www.evanjones.ca/tcp-stuck-connection-mystery.html =20