pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Maciek Sakrejda <m.sakrejda@gmail.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10432: failed to re-find parent key in index
Date: Thu, 29 May 2014 18:08:35 +0200
Message-ID: <20140529160835.GO27914@awork2.anarazel.de> (raw)
In-Reply-To: <CAOtHd0A=ZJDbh2FU0jauLjN-_W7_BR79F+t0y99J=xXf8Jao9A@mail.gmail.com>
References: <20140523175217.2692.50568@wrigleys.postgresql.org>
	<5384D42A.8070904@vmware.com>
	<CAOtHd0A=ZJDbh2FU0jauLjN-_W7_BR79F+t0y99J=xXf8Jao9A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

On 2014-05-29 08:56:10 -0700, Maciek Sakrejda wrote:
> On Tue, May 27, 2014 at 11:06 AM, Heikki Linnakangas <
> hlinnakangas@vmware.com> wrote:
> 
> > I would be interested in seeing the structure of the index, if there is
> > anything else corrupt in there.
> 
> 
> It's an index on (integer, timestamp without time zone). Unfortunately,
> it's a customer DB, so getting more direct access may be problematic. Is
> there metadata we can gather about it that could be useful?
> 
> Also, what WAL actions led to the error? Try something like:
> >
> >  pg_xlogdump -r btree  -p $PGDATA -s 339/65000000 | grep 1665279
> >
> > and search that for any records related to the failed split, e.g. grepping
> > further for the block numbers in the error message.

I wonder why the failure didn't show the record that triggered the
error? This is on a primary? If so, my guess is that this happened
during the 'incomplete action' cleanup. Do you have a better explanation
Heikki?

> Also, it turned out that this was a persistent problem--a couple of
> replicas failed the same way. I then worked with the customer and had them
> re-create the index, and that seems to have resolved the issue. My
> colleague Greg Stark has taken over the forensic investigation here--he may
> have more to add.

My hope^Wguess is that this is a symptom of
1a917ae8610d44985fd2027da0cfe60ccece9104 (not released) or even
9a57858f1103b89a5674f0d50c5fe1f756411df6 (9.3.4). Once the hot chain is
corrupted such errors could occur
When were those standbys made? Did the issue occur on the primary as
well?

Greetings,

Andres Freund

PS: wal-e's intersperesed output is rather annoying...

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Message-ID: <20140529160835.GO27914@awork2.anarazel.de>
Permalink:  ../20140529160835.GO27914@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140529160835.GO27914@awork2.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@2ndquadrant.com, m.sakrejda@gmail.com, hlinnakangas@vmware.com
  Subject: Re: BUG #10432: failed to re-find parent key in index
  In-Reply-To: <20140529160835.GO27914@awork2.anarazel.de>
  References: <20140523175217.2692.50568@wrigleys.postgresql.org> <5384D42A.8070904@vmware.com> <CAOtHd0A=ZJDbh2FU0jauLjN-_W7_BR79F+t0y99J=xXf8Jao9A@mail.gmail.com> <20140529160835.GO27914@awork2.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