Re: Assert failure found in 8.1RC1

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Creager <Robert(dot)Creager(at)Sun(dot)com>, PGHackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert failure found in 8.1RC1
Date: 2005-11-04 22:42:51
Message-ID: 20051104224251.GJ9989@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 04, 2005 at 05:26:25PM -0500, Andrew Dunstan wrote:
> >Well, for things like race conditions I don't know that you can create
> >reproducable test cases. My point was that this bug was exposed by
> >databases with workloads that involved very high transaction rates. I
> >know in the case of my client this is due to some sub-optimal design
> >decisions, and I believe the other case was similar. My suggestion is
> >that having a test that involves a lot of row-by-row type operations
> >that generate a very high transaction rate would help expose these kinds
> >of bugs.
> >
> >Of course if someone can come up with a self-contained reproducable test
> >case for this race condition that would be great as well. :)
> >
> >
>
> These conditions make it quite unsuitable for buildfarm, which is
> designed as a thin veneer over the postgres build process, and intended
> to run anywhere you can build postgres.
>
> Maybe you could use one of the Linux labs, since your client is on RHEL.

I'm not worried about my client, I'm just thinking of a way to better
ferret out bugs like this. And there's no real reason why something like
this couldn't be part of regression, or an additional build target.

BTW, I just realized that part of the answer to Tom's musing about why
this hasn't been seen before now is that few (if any) regular users are
running with asserts turned on, so odds are good that they'd never know
if this problem occured or not. Further argument for trying to test this
on the buildfarm and/or enabling assertions by default, IMHO.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-11-04 23:40:33 Re: Reducing the overhead of NUMERIC data
Previous Message Andrew Dunstan 2005-11-04 22:26:25 Re: Assert failure found in 8.1RC1