pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <amit.kapila@huawei.com>
To: 'Magnus Hagander' <magnus@hagander.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7534: walreceiver takes long time to detect n/w breakdown
Date: Thu, 13 Sep 2012 09:30:24 +0530
Message-ID: <003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.com> (raw)
In-Reply-To: <CABUevEwBneuOdTcBhZDa84=bO63m+th4OLSAQbiiDQw0=2jf_g@mail.gmail.com>
References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org>
	<CABUevEwBneuOdTcBhZDa84=bO63m+th4OLSAQbiiDQw0=2jf_g@mail.gmail.com>

On Wednesday, September 12, 2012 10:12 PM Magnus Hagander wrote:
On Wed, Sep 12, 2012 at 1:54 PM,  <amit.kapila@huawei.com> wrote:
>> The following bug has been logged on the website:
>
>> Bug reference:      7534
>> Logged by:          Amit Kapila
>> Email address:      amit.kapila@huawei.com
>> PostgreSQL version: 9.2.0
>> Operating system:   Suse 10
>> Description:
>
>> 1. Both master and standby machine are connected normally,
>> 2. then you use the command: ifconfig ip down; make the network card of
>> master and standby down,
>
>> Observation
>> master can detect connect abnormal, but the standby can't detect connect
>> abnormal and show a connected channel long time.

> The master will detect it quicker, because it will get an error when
> it tries to send something.

> But the standby should detect it either when sending the feedback
> message (what's your wal_receiver_status_interval set to?) or when
> ythe kernel does (have you configured the tcp keepalive on the slave
> somehow?)
  wal_receiver_status_interval - 10s (we have not changed this. Used as
default).
  We have tried by using tcp keepalive as well, it might not be able to
detect as receiver is anyway trying to send
  Receiver status.  
  It fails during send socket call from XLogWalRcvSendReply() after calling
the same many times as internally might be in   
  send() until the sockets internal buffer is full, it keeps accumulating
even if other side recv has not received the 
  data.
  Also in walsender, it is failing to replication_timeout parameter not due
to send failure.
  So in my opinion, the full-proof solution would be to have mechanism
(replication_timeout) similar to walsender in 
  walreceiver.

> Oh, and what do you actually mean by "long time"?
  15-20 mins.


-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/





view thread (55+ messages)  latest in thread

Message-ID: <003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.com>
Permalink:  ../003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.com/
Also on:    postgresql.org/message-id/003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.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-bugs@postgresql.org
  Cc: amit.kapila@huawei.com, magnus@hagander.net
  Subject: Re: BUG #7534: walreceiver takes long time to detect n/w breakdown
  In-Reply-To: <003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.com>
  References: <E1TBlX1-0003OA-SB@wrigleys.postgresql.org> <CABUevEwBneuOdTcBhZDa84=bO63m+th4OLSAQbiiDQw0=2jf_g@mail.gmail.com> <003a01cd9164$4e199930$ea4ccb90$@kapila@huawei.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