pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timofei Dynikov <timofeid@outlook.com>
To: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14171: Wrong FSM file after switching hot standby to master
Date: Fri, 3 Jun 2016 13:09:11 +0300
Message-ID: <DUB126-W5D9CC621EEEADCDB743D1CD590@phx.gbl> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

> Date: Thu, 2 Jun 2016 07:42:32 -0700
> From: andres@anarazel.de
> To: michael.paquier@gmail.com
> CC: timofeid@outlook.com; pgsql-bugs@postgresql.org
> Subject: Re: [BUGS] BUG #14171: Wrong FSM file after switching hot standby to master
> 
> 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

Yes, problem persists across restarts. We can resolve problem only by performing VACUUM FULL or delete inconsistent FSM file.

Regards,Timofei Dynikov 
 		 	   		  =

view thread (5+ messages)  latest in thread

Message-ID: <DUB126-W5D9CC621EEEADCDB743D1CD590@phx.gbl>
Permalink:  ../DUB126-W5D9CC621EEEADCDB743D1CD590@phx.gbl/
Also on:    postgresql.org/message-id/DUB126-W5D9CC621EEEADCDB743D1CD590@phx.gbl

 · 

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

* 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