pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: timofeid@outlook.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14171: Wrong FSM file after switching hot standby to master
Date: Wed, 01 Jun 2016 13:48:19 +0000
Message-ID: <20160601134819.30392.85324@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14171
Logged by:          Timofei Dynikov
Email address:      timofeid@outlook.com
PostgreSQL version: 9.4.4
Operating system:   RHEL 6.6
Description:        

Hi

We have an installation of Postgres 9.4.4(PostgreSQL 9.4.4 on
x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat
4.4.7-11), 64-bit) on RHEL 6.6. DB installed on 2 nodes, 1 node is master,
another node is hot standby(streaming replication). DB is monitored by
pacеmaker pgsql agent.
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?


-- 
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: <20160601134819.30392.85324@wrigleys.postgresql.org>
Permalink:  ../20160601134819.30392.85324@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160601134819.30392.85324@wrigleys.postgresql.org

 · 

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
  Subject: Re: BUG #14171: Wrong FSM file after switching hot standby to master
  In-Reply-To: <20160601134819.30392.85324@wrigleys.postgresql.org>
  References: <20160601134819.30392.85324@wrigleys.postgresql.org>

* 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