Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqj27-0002RF-95 for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 22:49:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqj25-0003Mu-17 for pgsql-general@arkaria.postgresql.org; Thu, 03 Nov 2022 22:49:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqj24-0003J2-M8 for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 22:49:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqj1y-0002fI-Cl for pgsql-general@lists.postgresql.org; Thu, 03 Nov 2022 22:49:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2A3Mnexq2188170; Thu, 3 Nov 2022 18:49:40 -0400 From: Tom Lane To: Joanna Xu cc: "pgsql-general@lists.postgresql.org" , "Sandeep Yadav (93247)" , Sylwester Czerniewicz Subject: Re: shutdown Postgres (standby) host causing timeout on other servers in replication In-reply-to: References: Comments: In-reply-to Joanna Xu message dated "Thu, 03 Nov 2022 20:55:36 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2188168.1667515780.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Nov 2022 18:49:40 -0400 Message-ID: <2188169.1667515780@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joanna Xu writes: > We have PostgreSQL master-slave replication configuration with 4 servers= . > After shutting down one standby server, we found below errors on all oth= er 3 servers and the applications couldn't access the database due to the = timeout. > DAO-00002 datasource connection failure:Time out waiting for a DefaultDa= taSource > ERROR SQLException code: 0 SQLState: null There's no such error message, indeed nothing about "DefaultDataSource" at all, in the community Postgres code. I guess it's coming from some extension or maybe some client-side replication logic. I suggest finding where it's coming from and then asking the appropriate authors. regards, tom lane