From: Adrian Klaver <adrian.klaver@aklaver.com>
To: TALLURI Nareshkumar <nareshkumar.talluri@socgen.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: LOG: could not send data to client: Broken pipe
Date: Tue, 2 Jun 2020 07:14:43 -0700
Message-ID: <c841d2dd-7a85-adff-9383-71f9e13786f4@aklaver.com> (raw)
In-Reply-To: <DB6PR0502MB30136D3D0BA74A61CC704694908B0@DB6PR0502MB3013.eurprd05.prod.outlook.com>
References: <DB6PR0502MB301312A789DC6C46972059BF908B0@DB6PR0502MB3013.eurprd05.prod.outlook.com>
<DB6PR0502MB30136D3D0BA74A61CC704694908B0@DB6PR0502MB3013.eurprd05.prod.outlook.com>
On 6/1/20 8:41 PM, TALLURI Nareshkumar wrote:
> Hello Postgres Support Team,
>
> I need your help to identify the issue and apply the fix for it.
>
> My client is running one query through Application and getting error
> like below.
>
> 11:20:46.298 [http-nio-8083-exec-7] ERROR c.s.s.g.a.alcor.pdi.dao.PdiDao
> - While getting pdi from 2019-12-21 to 2020-06-01: An I/O error occurred
> while sending to the backend.
>
> org.postgresql.util.PSQLException: An I/O error occurred while sending
> to the backend.
>
> When I checked in the postgres log I noticed the below.
>
> 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxx] [xxxxxxxxxx(53643)]
> [08006] LOG: could not send data to client: Broken pipe
>
> 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxx] [xxxxxxxxxxxx(53643)]
> [08006] STATEMENT: select ………………………………. (it just a select query)
>
> 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxxx] [xxxxxxxxxx(53643)]
> [08006] FATAL: connection to client lost
>
> Note: DB name, hostname, username, sql text morphed in above message
> for security reasons, so kindly consider it.
>
> I ran the above select query from psql prompt and I got the output,
> Time: 7178.926 ms. Ofcource my one is local connection so no broken
> pipe, where as client is using the network so he is getting broken pipe.
>
> We checked with Network team they are claiming no
> issues with the network, But not sure.
>
> I worked with Unix team and they raised a case to Red hat support and
> got confirmation from them that “no issues observed from OS End”
>
> In-fact Red hat looking for a feedback of Postgres Community.
>
> Version of Postgres : PostgreSQL 9.6.5 on
> x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat
> 4.8.5-11), 64-bit
>
> OS : Red Hat
> Enterprise Linux Server release 7.2 (Maipo)
>
> We observed “LOG: could not send data to client: Broken pipe” in
> postgres log from long time , But recently client complained about it.
> So we are in process of fixing it for which we need your help.
>
> Fyi.. I had performed VACUUM(FULL, ANALYZE, VERBOSE) on
> the table. So the last analyzed is latest.
>
> I already checked in Postgres archive and found below links on the same
> topic, But I could not get the concreate answer to fix the issue, so
> please help.
>
> https://www.postgresql.org/search/?m=1&q=LOG%3A++could+not+send+data+to+client%3A+Broken+pipe&am...
>
> checked 11,12,13,14,15,16,17,18 mail replies
>
> Let me know if you need any more details from my end.
Is there anything relevant in the OS system log around the time period
2020-06-02 02:09:21.333 CEST?
>
> Regards,
>
> Narresh
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, nareshkumar.talluri@socgen.com
Subject: Re: LOG: could not send data to client: Broken pipe
In-Reply-To: <c841d2dd-7a85-adff-9383-71f9e13786f4@aklaver.com>
References: <DB6PR0502MB301312A789DC6C46972059BF908B0@DB6PR0502MB3013.eurprd05.prod.outlook.com> <DB6PR0502MB30136D3D0BA74A61CC704694908B0@DB6PR0502MB3013.eurprd05.prod.outlook.com> <c841d2dd-7a85-adff-9383-71f9e13786f4@aklaver.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