Re: xid_wraparound tests intermittent failure. - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Re: xid_wraparound tests intermittent failure.
Date
Msg-id CAD21AoBgnnn_BX3L3WFS+1aZtwc4D0Es+fRZ7eg5XF3ASJkP5w@mail.gmail.com
Whole thread Raw
In response to Re: xid_wraparound tests intermittent failure.  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Tue, Jul 30, 2024 at 3:29 AM Andrew Dunstan <andrew@dunslane.net> wrote:
>
>
> On 2024-07-29 Mo 5:25 PM, Masahiko Sawada wrote:
>
> I've attached the patch. Could you please test if the patch fixes the
> instability you observed?
>
> Since we turn off autovacuum on all three tests and we wait for
> autovacuum to complete processing databases, these tests potentially
> have a similar (but lower) risk. So I modified these tests to turn it
> on so we can ensure the autovacuum runs periodically.
>
>
> I assume you actually meant to remove the "autovacuum = off" in 003_wraparound.pl. With that change in your patch I
retriedmy test, but on iteration 100 out of 100 it failed on test 002_limits.pl. 
>
> I think we need to remove the "autovacuum = off' also in 002_limits.pl
> as it waits for autovacuum to process both template0 and template1
> databases. Just to be clear, the failure happened even without
> "autovacuum = off"?
>
> The attached patch, a slight modification of yours, removes "autovacuum
> = off" for all three tests, and given that a set of 200 runs was clean
> for me.
>
> Oh I missed that I left "autovacuum = off' for some reason in 002
> test. Thank you for attaching the patch, it looks good to me.
>
>
> Thanks, pushed.

Thanks!

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: long-standing data loss bug in initial sync of logical replication
Next
From: David Rowley
Date:
Subject: Re: can we mark upper/lower/textlike functions leakproof?