pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
Date: Thu, 17 Jan 2019 22:27:21 +0300
Message-ID: <4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com> (raw)
In-Reply-To: <20190117173930.5m5b5fm5fbjtphgv@alap3.anarazel.de>
References: <15594-9df77c4c0da54c2c@postgresql.org>
	<20190116190949.veuctcodlttweumc@alap3.anarazel.de>
	<467b0e02-8fbd-8e7f-4457-037bcc560307@2ndquadrant.com>
	<48b7323d-4cef-21e7-9224-3a13a8bf9b6e@gmail.com>
	<20190117173930.5m5b5fm5fbjtphgv@alap3.anarazel.de>

17.01.2019 20:39, Andres Freund wrote:
> On 2019-01-17 13:42:40 +0300, Alexander Lakhin wrote:
>> 17.01.2019 13:25, Petr Jelinek wrote:
>>> On 16/01/2019 20:09, Andres Freund wrote:
>>>> On 2019-01-16 14:56:34 +0000, PG Bug reporting form wrote:
>>>>> The following bug has been logged on the website:
>>>>>
>>>>> Bug reference:      15594
>>>>> Logged by:          Alexander Lakhin
>>>>> Email address:      exclusion@gmail.com
>>>>> PostgreSQL version: 11.1
>>>>> Operating system:   Ubuntu 18.04
>>>>> Description:        
>>>>>
>>>>> Some tests in contrib/test_decoding/output_iso/ occasionally fail.
>>>>> To reproduce it reliable you can do:
>>>>> # sed 's/ mxact / $(shell printf "mxact %.0s" `seq 1000` ) /' -i
>>>>> contrib/test_decoding/Makefile
>>>>> # make check -C contrib/test_decoding/
>>>>>
>>>>> ...
>>>>>
>>>>> I observe this issue with the tests: mxact, delayed_startup, and
>>>>> ondisk_startup.
>>>> Interesting - I've not seen that on the buildfarm before, or in local tests
>>>> with a lot of repetitions. I assume the problem vanishes if you add 'skip-empty-xacts', '1'
>>>> to the options of pg_logical_slot_get_changes()?
>>>>
>>> I bet those empty transactions are from autovacuum. The probability of
>>> hitting this could be exaggerated by the fact that the test is run
>>> within the same instance 1000x rather than running the make check 1000x
>>> so we produce plenty of catalog bloat for autovacuum to clean.
>>>
>> Yes, it's almost impossible to hit this with `make check`, but with
>> `make installcheck` the probability is much higher as we use an existing
>> instance.
>> I've reproduced it with `make check` just to make it simple.
> I'll apply the fix for this, but please note that installcheck
> *intentionally* is disabled for test_decoding.
Thanks, Andres! I see a comment in Makefile:
# Disabled because these tests require "wal_level=logical", which
# typical installcheck users do not have (e.g. buildfarm clients).

So if I use for the installcheck'ed instance a config with the required
wal_level, is it ok to perform `make installcheck-force -C
contrib/test_decoding`?
Or maybe there is some other difficulty with installcheck?

Best regards,
Alexander




view thread (7+ messages)

Message-ID: <4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com>
Permalink:  ../4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com/
Also on:    postgresql.org/message-id/4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com

 · 

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: exclusion@gmail.com, andres@anarazel.de, petr.jelinek@2ndquadrant.com
  Subject: Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
  In-Reply-To: <4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com>
  References: <15594-9df77c4c0da54c2c@postgresql.org> <20190116190949.veuctcodlttweumc@alap3.anarazel.de> <467b0e02-8fbd-8e7f-4457-037bcc560307@2ndquadrant.com> <48b7323d-4cef-21e7-9224-3a13a8bf9b6e@gmail.com> <20190117173930.5m5b5fm5fbjtphgv@alap3.anarazel.de> <4f6fb59c-b3df-0365-a8b8-531305985ce1@gmail.com>

* 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