pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek.Petr@tieto.com
To: michael.paquier@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13822: Slave terminated - WAL contains references to invalid page
Date: Tue, 22 Dec 2015 12:05:50 +0000
Message-ID: <5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.com> (raw)
In-Reply-To: <CAB7nPqSDPVAQoDp+coVHCNh_J+9R9nKTERQBfS3Qz3dK3iM7yg@mail.gmail.com>
References: <20151217125025.6916.26898@wrigleys.postgresql.org>
	<CAB7nPqSDPVAQoDp+coVHCNh_J+9R9nKTERQBfS3Qz3dK3iM7yg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hello,

Yes,  that relation you're asking has currently 39GB. Slave rebuild helped but in other environment it occured again even after the rebuild.
Following two occurences are from different PostgreSQL master/slave system (using streaming replication) running at different machines:

2015-12-15 13:05:39 CET @  WARNING:  page 4333275 of relation base/16422/17230 is uninitialized
2015-12-15 13:05:39 CET @  CONTEXT:  xlog redo visible: rel 1663/16422/17230; blk 4333275
2015-12-15 13:05:39 CET @  PANIC:  WAL contains references to invalid pages
2015-12-15 13:05:39 CET @  CONTEXT:  xlog redo visible: rel 1663/16422/17230; blk 4333275
2015-12-15 13:05:39 CET @  LOG:  startup process (PID 8963) was terminated by signal 6: Aborted
2015-12-15 13:05:39 CET @  LOG:  terminating any other active server processes

2015-12-22 00:25:11 CET @  WARNING:  page 71566 of relation base/16422/23253 is uninitialized
2015-12-22 00:25:11 CET @  CONTEXT:  xlog redo visible: rel 1663/16422/23253; blk 71566
2015-12-22 00:25:11 CET @  PANIC:  WAL contains references to invalid pages
2015-12-22 00:25:11 CET @  CONTEXT:  xlog redo visible: rel 1663/16422/23253; blk 71566
2015-12-22 00:25:12 CET @  LOG:  startup process (PID 24434) was terminated by signal 6: Aborted
2015-12-22 00:25:12 CET @  LOG:  terminating any other active server processes

select relname from pg_class where relfilenode in ('17230','23253');
    relname     
----------------
 pg_toast_17225
 pg_toast_23246
(2 rows)

First toast's relation has 34GB, second 2452 MB.

Is it possible to get more info from some deeper logging for the case it will occur again?

Regards
Marek

-----Original Message-----
From: Michael Paquier [mailto:michael.paquier@gmail.com] 
Sent: Friday, December 18, 2015 6:05 AM
To: Petr Marek <Marek.Petr@tieto.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: [BUGS] BUG #13822: Slave terminated - WAL contains references to invalid page

On Thu, Dec 17, 2015 at 9:50 PM,  <marek.petr@tieto.com> wrote:
> Several days after one in-place and one out of place upgrade from 9.3 
> to 9.4 version following event occured on both  environments:
>
> 2015-12-15 22:35:18 CET @ WARNING: page 4119662 of relation 
> base/16422/18134 is uninitialized
> 2015-12-15 22:35:18 CET @ CONTEXT: xlog redo visible: rel 
> 1663/16422/18134; blk 4119662
> 2015-12-15 22:35:18 CET @ PANIC: WAL contains references to invalid 
> pages
> 2015-12-15 22:35:18 CET @ CONTEXT: xlog redo visible: rel 
> 1663/16422/18134; blk 4119662
> 2015-12-15 22:35:18 CET @ LOG: startup process (PID 22269) was 
> terminated by signal 6: Aborted
> 2015-12-15 22:35:18 CET @ LOG: terminating any other active server 
> process
>
> Once it was TOAST and another regular table.

This is the indication of some data corruption, page 4119662 referring to at least a size of 31GB, but this so less information it is hard to guess what could happen. Is 31GB more or less the size of this relation? If you deploy a slave from a fresh base backup, do you still see the error? That's unlikely so if it is the second time you are seeing this problem, but it may be a problem of corruption within the WAL segments themselves.
--
Michael

-- 
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 (12+ messages)  latest in thread

Message-ID: <5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.com>
Permalink:  ../5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.com/
Also on:    postgresql.org/message-id/5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.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: Marek.Petr@tieto.com, michael.paquier@gmail.com
  Subject: Re: BUG #13822: Slave terminated - WAL contains references to invalid page
  In-Reply-To: <5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.com>
  References: <20151217125025.6916.26898@wrigleys.postgresql.org> <CAB7nPqSDPVAQoDp+coVHCNh_J+9R9nKTERQBfS3Qz3dK3iM7yg@mail.gmail.com> <5f921d78aaa04807b4c809e0ff130b11@C105S135VM024.eu.tieto.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