pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: timofeid@outlook.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14171: Wrong FSM file after switching hot standby to master
Date: Thu, 2 Jun 2016 07:42:32 -0700
Message-ID: <20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de> (raw)
In-Reply-To: <CAB7nPqSNDW7fdb5gc3004Y-kHHU0L+uLyyjyaNDkaUy95QF+pQ@mail.gmail.com>
References: <20160601134819.30392.85324@wrigleys.postgresql.org>
	<CAB7nPqSNDW7fdb5gc3004Y-kHHU0L+uLyyjyaNDkaUy95QF+pQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2016-06-02 16:42:35 +0900, Michael Paquier wrote:
> > Sometimes we have troubles with fsm-files. In case:
> >  • master instance is switching to another node(failover or switchover) on
> > highload
> >  • Hot standby node restart and run as master succesfully.
> >  • After that we sometimes get FSM files pointing to non-existent blocks in
> > the table, so subsequent insert operations on such tables fails with error
> > message like following: 'could not read block XX in file "base/YYYY/ZZZZZ"'.
> > The issue can be resolved by either deleting of wrong FSM file (while
> > database is stopped) or performing VACUUM FULL on erroneous table. The
> > problem is usually observed on relatively small tables (e.g. up to 30
> > blocks) which are often cleaned out (having most rows deleted).
> > Does anybody already faced such behavior? What can be the root cause of such
> > problems? Are there any recommendations on how to avoid them?
> 
> Andres, do you think that c6ff84b0 can help here? Those symptoms look
> rather similar to some missing invalidation messages on the standby.

If there was a restart involved, it seems unlikely that that'll be
relevant. Timofei, do I understand correctly that the problem persists
across restarts?

Regards,

Andres


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de>
Permalink:  ../20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de

 · 

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: andres@anarazel.de, michael.paquier@gmail.com
  Subject: Re: BUG #14171: Wrong FSM file after switching hot standby to master
  In-Reply-To: <20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de>
  References: <20160601134819.30392.85324@wrigleys.postgresql.org> <CAB7nPqSNDW7fdb5gc3004Y-kHHU0L+uLyyjyaNDkaUy95QF+pQ@mail.gmail.com> <20160602144232.33gyusj2dekzk7cp@alap3.anarazel.de>

* 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