Re: Should we remove "not fast" promotion at all?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Tomonari Katsumata <t(dot)katsumata1122(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Tomonari Katsumata <katsumata(dot)tomonari(at)po(dot)ntts(dot)co(dot)jp>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Should we remove "not fast" promotion at all?
Date: 2013-08-08 17:51:45
Message-ID: 5203DAB1.2070102@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08/08/2013 10:34 AM, Andres Freund wrote:
> On 2013-08-08 10:15:14 -0700, Josh Berkus wrote:
>> Either we have confidence is fast promotion, or we don't. If we don't
>> have confidence, then either (a) more testing is needed, or (b) it
>> shouldn't be the default. Again, here, we are coming up against our
>> lack of any kind of broad replication failure testing.
>
> While I think we definitely miss out there I don't think any regression
> suite would help much here. I am wary of unknown problems, not ones
> we already have tests for. The subtle ones aren't easy to test, even
> with a regression suite.

Yeah, that's why we have to get beyond the mentality that regression
testing is the only kind of testing. We need a destruction test for
replication, and that's NOT going to be a regression test. Among other
things, we'll probably need to run it on cloud hosting.

> The problem is that, especially involving HS, there's lots of subtle
> corner cases. And those are pretty hard to forsee and thus hard to
> test.

It would be useful to assemble a list of corner cases we *do* know
about. This could become a test suite, and we could keep adding to it.

> Being able to tell somebody to touch some file and kill a certain
> process instead of pg_ctl triggering is certainly better than to have
> them apply complex patches which then only exhibit the old behaviour.
> It's not about letting people regularly use it or such. It's about being
> able to verify problems.

The problem is, if failover fails badly, the user is probably facing a
corrupt database, downtime, loss of data, and restore from backup. So
if we don't think that fast failover is rock-solid trustworthy --- or at
least as trustworthy as slow failover was -- then we should be making it
a non-default option for 9.3. We shouldn't be exposing people who don't
need fast failover to new risks without their knowledge.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2013-08-08 17:57:33 Re: [PATCH] Statistics collection for CLUSTER command
Previous Message Andres Freund 2013-08-08 17:34:18 Re: Should we remove "not fast" promotion at all?