Re: [BUGS] BUG #5412: test case produced, possible race condition. - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: [BUGS] BUG #5412: test case produced, possible race condition.
Date
Msg-id 4BC5C58702000025000308C8@gw.wicourts.gov
Whole thread Raw
In response to Re: [BUGS] BUG #5412: test case produced, possible race condition.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] BUG #5412: test case produced, possible race condition.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> What this suggests is that CLOBBER_CACHE_ALWAYS is actually too
> strong to provide a thorough test of cache flush hazards.  Maybe
> we need an alternate setting along the lines of
> CLOBBER_CACHE_SOMETIMES that would randomly choose whether or not
> to flush at any given opportunity. But if such a setup did produce
> a crash, it'd be awfully hard to reproduce for investigation. 
> Ideas?
Seed the random number generator such that each run of the test gets
the same "random" numbers?  Or *allow* the seed to be set, with the
default being a random seed which is logged so that it can be forced
for a repeat of the run?
-Kevin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #5412: test case produced, possible race condition.
Next
From: Rusty Conover
Date:
Subject: Re: [BUGS] BUG #5412: test case produced, possible race condition.