Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installcheck in a loop eventually fails #282

Open
a-masterov opened this issue May 20, 2024 · 0 comments
Open

Installcheck in a loop eventually fails #282

a-masterov opened this issue May 20, 2024 · 0 comments
Labels

Comments

@a-masterov
Copy link

Hello!

If we run the installcheck in a loop, e.g.

CNT=0
while make installcheck
do
    let CNT++
done
echo Test failed on run $CNT

it eventually failed.

Errors can look like

diff -U3 /wal2json-wal2json_2_6/expected/include_timestamp.out /wal2json-wal2json_2_6/results/include_timestamp.out
--- /wal2json-wal2json_2_6/expected/include_timestamp.out       2024-04-25 01:02:38.000000000 +0000
+++ /wal2json-wal2json_2_6/results/include_timestamp.out        2024-05-20 10:44:22.432449005 +0000
@@ -15,7 +15,7 @@
 SELECT count(*) = 1, count(distinct ((data::json)->'timestamp')::text) = 1 FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'format-version', '1', 'include-timestamp', '1');
  ?column? | ?column? 
 ----------+----------
- t        | t
+ f        | f
 (1 row)
 
 -- Two rows should have two records and two timestamps
@@ -24,7 +24,7 @@
 SELECT count(*) = 2, count(distinct ((data::json)->'timestamp')::text) = 2 FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'format-version', '1', 'include-timestamp', '1');
  ?column? | ?column? 
 ----------+----------
- t        | t
+ f        | f
 (1 row)
 
 -- Two rows in one transaction should have one record and one timestamp
@@ -32,7 +32,7 @@
 SELECT count(*) = 1, count(distinct ((data::json)->'timestamp')::text) = 1 FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'format-version', '1', 'include-timestamp', '1');
  ?column? | ?column? 
 ----------+----------
- t        | t
+ f        | f
 (1 row)
 
 SELECT 'stop' FROM pg_drop_replication_slot('regression_slot');

They occur randomly in different SQL files.
Maybe it happens due to background maintenance processes like autovacuum

@eulerto eulerto added the bug label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants