035-failure-repro.sh.txt
text/plain
Filename: 035-failure-repro.sh.txt
Type: text/plain
Part: 0
set -e
# git reset --hard; git clean -dfx >/dev/null
git restore src/test/recovery/t/035_standby_logical_decoding.pl
patch -p1 --no-backup-if-mismatch << EOF
--- a/src/test/recovery/t/035_standby_logical_decoding.pl
+++ b/src/test/recovery/t/035_standby_logical_decoding.pl
@@ -692,6 +692,8 @@ wait_until_vacuum_can_remove(
'', 'CREATE TABLE conflict_test(x integer, y text);
DROP TABLE conflict_test;', 'pg_class');
+if (0)
+{
# Check invalidation in the logfile and in pg_stat_database_conflicts
check_for_invalidation('row_removal_', $logstart, 'with vacuum on pg_class');
@@ -1057,5 +1059,6 @@ chomp($cascading_stdout);
is($cascading_stdout, $expected,
'got same expected output from pg_recvlogical decoding session on cascading standby'
);
+}
done_testing();
EOF
CC=gcc ./configure -q --enable-debug --enable-cassert --enable-injection-points --enable-depend --enable-tap-tests && make -s -j12 && PROVE_TESTS="t/035*" make -s check -C src/test/recovery/
rm -rf src/test/recovery_*; for i in {1..50}; do cp -r src/test/recovery/ src/test/recovery_$i/; sed "s|src/test/recovery|src/test/recovery_$i|" -i src/test/recovery_$i/Makefile; done
res=0
for i in {1..10}; do echo "ITERATION $i"; parallel --halt now,fail=1 -j50 --linebuffer --tag PROVE_TESTS="t/035*" NO_TEMP_INSTALL=1 make check -s -C src/test/recovery_{} ::: `seq 20` || { res=1; break; }; done
exit $res