pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15594: Unstable tests in contrib/test_decoding/output_iso/
7+ messages / 4 participants
[nested] [flat]
* BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
@ 2019-01-16 14:56 PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 7+ messages in thread
From: PG Bug reporting form @ 2019-01-16 14:56 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: exclusion@gmail.com
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/
...
test delayed_startup ... ok
test ondisk_startup ... ok
test concurrent_ddl_dml ... ok
test oldest_xmin ... ok
test snapshot_transfer ... ok
============== shutting down postmaster ==============
==========================
19 of 1005 tests failed.
==========================
The differences that caused some tests to fail can be viewed in the
file ".../contrib/test_decoding/output_iso/regression.diffs". A copy of the
test summary that you see
above is saved in the file
".../contrib/test_decoding/output_iso/regression.out".
The diff file contains:
--- .../contrib/test_decoding/expected/delayed_startup.out 2018-02-08
16:57:42.816744192 +0300
+++ .../contrib/test_decoding/output_iso/results/delayed_startup.out
2019-01-16 17:46:33.138962021 +0300
@@ -12,6 +12,8 @@
step s2start: SELECT data FROM
pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids',
'false');
data
+BEGIN
+COMMIT
step s1b: BEGIN ISOLATION LEVEL SERIALIZABLE;
step s1w: INSERT INTO do_write DEFAULT VALUES;
step s1c: COMMIT;
======================================================================
...
I observe this issue with the tests: mxact, delayed_startup, and
ondisk_startup.
Best regards,
Alexander
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
@ 2019-01-16 19:09 ` Andres Freund <andres@anarazel.de>
2019-01-16 20:04 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Alexander Lakhin <exclusion@gmail.com>
2019-01-17 10:25 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Petr Jelinek <petr.jelinek@2ndquadrant.com>
0 siblings, 2 replies; 7+ messages in thread
From: Andres Freund @ 2019-01-16 19:09 UTC (permalink / raw)
To: exclusion@gmail.com; pgsql-bugs@lists.postgresql.org
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/
>
> ...
> test delayed_startup ... ok
> test ondisk_startup ... ok
> test concurrent_ddl_dml ... ok
> test oldest_xmin ... ok
> test snapshot_transfer ... ok
> ============== shutting down postmaster ==============
>
> ==========================
> 19 of 1005 tests failed.
> ==========================
> The differences that caused some tests to fail can be viewed in the
> file ".../contrib/test_decoding/output_iso/regression.diffs". A copy of the
> test summary that you see
> above is saved in the file
> ".../contrib/test_decoding/output_iso/regression.out".
>
> The diff file contains:
> --- .../contrib/test_decoding/expected/delayed_startup.out 2018-02-08
> 16:57:42.816744192 +0300
> +++ .../contrib/test_decoding/output_iso/results/delayed_startup.out
> 2019-01-16 17:46:33.138962021 +0300
> @@ -12,6 +12,8 @@
> step s2start: SELECT data FROM
> pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids',
> 'false');
> data
>
> +BEGIN
> +COMMIT
> step s1b: BEGIN ISOLATION LEVEL SERIALIZABLE;
> step s1w: INSERT INTO do_write DEFAULT VALUES;
> step s1c: COMMIT;
>
> ======================================================================
> ...
>
>
> 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()?
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
@ 2019-01-16 20:04 ` Alexander Lakhin <exclusion@gmail.com>
1 sibling, 0 replies; 7+ messages in thread
From: Alexander Lakhin @ 2019-01-16 20:04 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; pgsql-bugs@lists.postgresql.org
16.01.2019 22:09, Andres Freund wrote:
> On 2019-01-16 14:56:34 +0000, PG Bug reporting form wrote:
>> 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()?
>
> Greetings,
>
> Andres Freund
Thank you, Andres.
Yes, it helps. After applying the attached patch the issue is gone.
Just to note that mxact.out and ondisk_startup.out expected an empty
transaction.
If it's not important, then the fix is ready.
Best regards,
Alexander
Attachments:
fix-15594.patch (text/x-patch, 7.7K) download
diff --git a/contrib/test_decoding/expected/delayed_startup.out b/contrib/test_decoding/expected/delayed_startup.out
index db8c525ac4..fd5cd36a78 100644
--- a/contrib/test_decoding/expected/delayed_startup.out
+++ b/contrib/test_decoding/expected/delayed_startup.out
@@ -9,13 +9,13 @@ step s2init: <... completed>
?column?
init
-step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
step s1b: BEGIN ISOLATION LEVEL SERIALIZABLE;
step s1w: INSERT INTO do_write DEFAULT VALUES;
step s1c: COMMIT;
-step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
BEGIN
@@ -23,11 +23,11 @@ table public.do_write: INSERT: id[integer]:2
COMMIT
step s1b: BEGIN ISOLATION LEVEL SERIALIZABLE;
step s1w: INSERT INTO do_write DEFAULT VALUES;
-step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
step s1c: COMMIT;
-step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s2start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
BEGIN
diff --git a/contrib/test_decoding/expected/mxact.out b/contrib/test_decoding/expected/mxact.out
index f0d96cc67d..6ef83d5958 100644
--- a/contrib/test_decoding/expected/mxact.out
+++ b/contrib/test_decoding/expected/mxact.out
@@ -5,7 +5,7 @@ step s0init: SELECT 'init' FROM pg_create_logical_replication_slot('isolation_sl
?column?
init
-step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
step s1begin: BEGIN;
@@ -19,7 +19,7 @@ step s2sharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR SHARE)
t
step s0w: INSERT INTO do_write DEFAULT VALUES;
-step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
BEGIN
@@ -36,7 +36,7 @@ step s0init: SELECT 'init' FROM pg_create_logical_replication_slot('isolation_sl
?column?
init
-step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
step s1begin: BEGIN;
@@ -51,11 +51,9 @@ step s2keysharepgclass: SELECT count(*) > 1 FROM (SELECT * FROM pg_class FOR KEY
t
step s0alter: ALTER TABLE do_write ADD column ts timestamptz;
step s0w: INSERT INTO do_write DEFAULT VALUES;
-step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s0start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
-BEGIN
-COMMIT
BEGIN
table public.do_write: INSERT: id[integer]:1 ts[timestamp with time zone]:null
COMMIT
diff --git a/contrib/test_decoding/expected/ondisk_startup.out b/contrib/test_decoding/expected/ondisk_startup.out
index c7b1f45b46..a0f9acc7a6 100644
--- a/contrib/test_decoding/expected/ondisk_startup.out
+++ b/contrib/test_decoding/expected/ondisk_startup.out
@@ -27,7 +27,7 @@ init
step s2c: COMMIT;
step s1insert: INSERT INTO do_write DEFAULT VALUES;
step s1checkpoint: CHECKPOINT;
-step s1start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s1start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
BEGIN
@@ -36,15 +36,13 @@ COMMIT
step s1insert: INSERT INTO do_write DEFAULT VALUES;
step s1alter: ALTER TABLE do_write ADD COLUMN addedbys1 int;
step s1insert: INSERT INTO do_write DEFAULT VALUES;
-step s1start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');
+step s1start: SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');
data
BEGIN
table public.do_write: INSERT: id[integer]:2 addedbys2[integer]:null
COMMIT
BEGIN
-COMMIT
-BEGIN
table public.do_write: INSERT: id[integer]:3 addedbys2[integer]:null addedbys1[integer]:null
COMMIT
?column?
diff --git a/contrib/test_decoding/specs/delayed_startup.spec b/contrib/test_decoding/specs/delayed_startup.spec
index b7fe8148ce..949f05a24f 100644
--- a/contrib/test_decoding/specs/delayed_startup.spec
+++ b/contrib/test_decoding/specs/delayed_startup.spec
@@ -18,7 +18,7 @@ step "s1c" { COMMIT; }
session "s2"
setup { SET synchronous_commit=on; }
step "s2init" {SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding');}
-step "s2start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');}
+step "s2start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');}
permutation "s1b" "s1w" "s2init" "s1c" "s2start" "s1b" "s1w" "s1c" "s2start" "s1b" "s1w" "s2start" "s1c" "s2start"
diff --git a/contrib/test_decoding/specs/mxact.spec b/contrib/test_decoding/specs/mxact.spec
index ea5b1aa2d6..7d8abf411a 100644
--- a/contrib/test_decoding/specs/mxact.spec
+++ b/contrib/test_decoding/specs/mxact.spec
@@ -13,7 +13,7 @@ teardown
session "s0"
setup { SET synchronous_commit=on; }
step "s0init" {SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding');}
-step "s0start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');}
+step "s0start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');}
step "s0alter" {ALTER TABLE do_write ADD column ts timestamptz; }
step "s0w" { INSERT INTO do_write DEFAULT VALUES; }
diff --git a/contrib/test_decoding/specs/ondisk_startup.spec b/contrib/test_decoding/specs/ondisk_startup.spec
index 12c57a813d..48c67a770a 100644
--- a/contrib/test_decoding/specs/ondisk_startup.spec
+++ b/contrib/test_decoding/specs/ondisk_startup.spec
@@ -16,7 +16,7 @@ session "s1"
setup { SET synchronous_commit=on; }
step "s1init" {SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding');}
-step "s1start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false');}
+step "s1start" {SELECT data FROM pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids', 'false', 'skip-empty-xacts', '1');}
step "s1insert" { INSERT INTO do_write DEFAULT VALUES; }
step "s1checkpoint" { CHECKPOINT; }
step "s1alter" { ALTER TABLE do_write ADD COLUMN addedbys1 int; }
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
@ 2019-01-17 10:25 ` Petr Jelinek <petr.jelinek@2ndquadrant.com>
2019-01-17 10:42 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Alexander Lakhin <exclusion@gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Petr Jelinek @ 2019-01-17 10:25 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; exclusion@gmail.com; pgsql-bugs@lists.postgresql.org
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/
>>
>> ...
>> test delayed_startup ... ok
>> test ondisk_startup ... ok
>> test concurrent_ddl_dml ... ok
>> test oldest_xmin ... ok
>> test snapshot_transfer ... ok
>> ============== shutting down postmaster ==============
>>
>> ==========================
>> 19 of 1005 tests failed.
>> ==========================
>
>> The differences that caused some tests to fail can be viewed in the
>> file ".../contrib/test_decoding/output_iso/regression.diffs". A copy of the
>> test summary that you see
>> above is saved in the file
>> ".../contrib/test_decoding/output_iso/regression.out".
>>
>> The diff file contains:
>> --- .../contrib/test_decoding/expected/delayed_startup.out 2018-02-08
>> 16:57:42.816744192 +0300
>> +++ .../contrib/test_decoding/output_iso/results/delayed_startup.out
>> 2019-01-16 17:46:33.138962021 +0300
>> @@ -12,6 +12,8 @@
>> step s2start: SELECT data FROM
>> pg_logical_slot_get_changes('isolation_slot', NULL, NULL, 'include-xids',
>> 'false');
>> data
>>
>> +BEGIN
>> +COMMIT
>> step s1b: BEGIN ISOLATION LEVEL SERIALIZABLE;
>> step s1w: INSERT INTO do_write DEFAULT VALUES;
>> step s1c: COMMIT;
>>
>> ======================================================================
>> ...
>>
>>
>> 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.
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
2019-01-17 10:25 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Petr Jelinek <petr.jelinek@2ndquadrant.com>
@ 2019-01-17 10:42 ` Alexander Lakhin <exclusion@gmail.com>
2019-01-17 17:39 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Lakhin @ 2019-01-17 10:42 UTC (permalink / raw)
To: Petr Jelinek <petr.jelinek@2ndquadrant.com>; Andres Freund <andres@anarazel.de>; pgsql-bugs@lists.postgresql.org
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.
Best regards,
Alexander
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
2019-01-17 10:25 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Petr Jelinek <petr.jelinek@2ndquadrant.com>
2019-01-17 10:42 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Alexander Lakhin <exclusion@gmail.com>
@ 2019-01-17 17:39 ` Andres Freund <andres@anarazel.de>
2019-01-17 19:27 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Alexander Lakhin <exclusion@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Andres Freund @ 2019-01-17 17:39 UTC (permalink / raw)
To: Alexander Lakhin <exclusion@gmail.com>; +Cc: Petr Jelinek <petr.jelinek@2ndquadrant.com>; pgsql-bugs@lists.postgresql.org
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.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
2019-01-17 10:25 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Petr Jelinek <petr.jelinek@2ndquadrant.com>
2019-01-17 10:42 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Alexander Lakhin <exclusion@gmail.com>
2019-01-17 17:39 ` Re: BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ Andres Freund <andres@anarazel.de>
@ 2019-01-17 19:27 ` Alexander Lakhin <exclusion@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Alexander Lakhin @ 2019-01-17 19:27 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Petr Jelinek <petr.jelinek@2ndquadrant.com>; pgsql-bugs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-01-17 19:27 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 14:56 BUG #15594: Unstable tests in contrib/test_decoding/output_iso/ PG Bug reporting form <noreply@postgresql.org>
2019-01-16 19:09 ` Andres Freund <andres@anarazel.de>
2019-01-16 20:04 ` Alexander Lakhin <exclusion@gmail.com>
2019-01-17 10:25 ` Petr Jelinek <petr.jelinek@2ndquadrant.com>
2019-01-17 10:42 ` Alexander Lakhin <exclusion@gmail.com>
2019-01-17 17:39 ` Andres Freund <andres@anarazel.de>
2019-01-17 19:27 ` Alexander Lakhin <exclusion@gmail.com>
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