Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit afdeb79

Browse files
author
Mikhail Rutman
committed
Remove regression test atx2 and update regression_ee.diff
Tag: Multimaster
1 parent 8dd4cd0 commit afdeb79

File tree

2 files changed

+6
-61
lines changed

2 files changed

+6
-61
lines changed

expected/regression_ee.diff

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -550,64 +550,6 @@ diff ../../../src/test/regress/expected/privileges.out ../tmp_check/regress_outd
550550
-- CLUSTER
551551
CREATE INDEX sro_cluster_idx ON sro_tab ((sro_ifun(a) + sro_ifun(0)));
552552
CLUSTER sro_tab USING sro_cluster_idx;
553-
diff ../../../src/test/regress/expected/atx2.out ../tmp_check/regress_outdir/results/atx2.out
554-
--- ../../../src/test/regress/expected/atx2.out CENSORED
555-
+++ ../tmp_check/regress_outdir/results/atx2.out CENSORED
556-
@@ -287,17 +287,14 @@
557-
return 1;
558-
end$$;
559-
select atx_lo_test10(:my_loid);
560-
+NOTICE: other exception 42703, [MTM] failed to prepare transaction at peer node
561-
atx_lo_test10
562-
---------------
563-
1
564-
(1 row)
565-
566-
select lo_unlink(:my_loid);
567-
- lo_unlink
568-
------------
569-
- 1
570-
-(1 row)
571-
-
572-
+ERROR: [MTM] failed to prepare transaction at peer node
573-
-- put some initial data
574-
select lo_creat(-1) as my_loid \gset
575-
select lo_put( :my_loid, 0, 'lo test' );
576-
@@ -356,6 +353,7 @@
577-
declare c2 cursor with hold for select count_tt1_v(), count_tt1_s();
578-
insert into atx_tt1 values(2);
579-
commit;
580-
+ERROR: cannot PREPARE a transaction that has created a cursor WITH HOLD
581-
commit;
582-
begin;
583-
begin autonomous;
584-
@@ -371,6 +369,7 @@
585-
drop function count_tt1_s();
586-
drop table if exists atx_tt1;
587-
close c2;
588-
+ERROR: cursor "c2" does not exist
589-
-- 13
590-
create table atx_13_t(i int);
591-
begin;
592-
@@ -490,9 +489,7 @@
593-
insert into atx_tt2 values(1);
594-
declare c2 cursor with hold for select error_function();
595-
commit;
596-
-NOTICE: other exception 22012, division by zero
597-
-ERROR: control reached end of function without RETURN
598-
-CONTEXT: PL/pgSQL function error_function()
599-
+ERROR: cannot PREPARE a transaction that has created a cursor WITH HOLD
600-
commit;
601-
drop function if exists error_function();
602-
drop table if exists atx_tt2;
603-
@@ -582,6 +579,7 @@
604-
RESET client_min_messages;
605-
create database regression_atx_test_database;
606-
ALTER DATABASE "regression_atx_test_database" SET lc_messages TO 'C';
607-
+ERROR: [MTM] failed to prepare transaction at peer node
608-
\c regression_atx_test_database
609-
create table atx_test as select 1 as id;
610-
begin;
611553
diff ../../../src/test/regress/expected/atx3.out ../tmp_check/regress_outdir/results/atx3.out
612554
--- ../../../src/test/regress/expected/atx3.out CENSORED
613555
+++ ../tmp_check/regress_outdir/results/atx3.out CENSORED
@@ -794,7 +736,6 @@ diff ../../../src/test/regress/expected/publication.out ../tmp_check/regress_out
794736
List of publications
795737
Name | Owner | All tables | Inserts | Updates | Deletes | Truncates | Via root
796738
--------------------+--------------------------+------------+---------+---------+---------+-----------+----------
797-
+ multimaster | miker | f | t | f | f | t | f
798739
testpib_ins_trunct | regress_publication_user | f | t | f | f | f | f
799740
testpub_default | regress_publication_user | f | f | t | f | f | f
800741
-(2 rows)
@@ -805,7 +746,6 @@ diff ../../../src/test/regress/expected/publication.out ../tmp_check/regress_out
805746
List of publications
806747
Name | Owner | All tables | Inserts | Updates | Deletes | Truncates | Via root
807748
--------------------+--------------------------+------------+---------+---------+---------+-----------+----------
808-
+ multimaster | miker | f | t | f | f | t | f
809749
testpib_ins_trunct | regress_publication_user | f | t | f | f | f | f
810750
testpub_default | regress_publication_user | f | t | t | t | f | f
811751
-(2 rows)

t/001_regress.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
$schedule =~ s/test: largeobject//; # serial schedule
8787
$schedule =~ s/largeobject//; # parallel schedule
8888
$schedule =~ s/atx0//; # parallel schedule
89+
$schedule =~ s/atx2//; # parallel schedule
8990
unlink('parallel_schedule');
9091
TestLib::append_to_file('parallel_schedule', $schedule);
9192

@@ -142,8 +143,12 @@
142143
{
143144
$expected_file = "expected/regression_vanilla.diff"
144145
}
146+
# Remove lines which contains random data (like ports, users, etc) from output file
147+
# Remove line which starts with '+ mtm_sub_' from output file because it contains random user
148+
run [ "sed", "-i", "/+ mtm_sub_/d", "$ENV{TESTDIR}/results/regression.diff" ];
149+
# Remove line which starts from '+ multimaster' from output file because it contains random port number
150+
run [ "sed", "-i", "/+ multimaster/d", "$ENV{TESTDIR}/results/regression.diff" ];
145151
$diff = TestLib::system_log("diff -U3 ${expected_file} $ENV{TESTDIR}/results/regression.diff");
146-
run [ "sed", "-i", "/mtm_sub_/d", "$ENV{TESTDIR}/results/regression.diff" ];
147152
run [ "diff", "-U3", "${expected_file}", "$ENV{TESTDIR}/results/regression.diff" ], ">", "$ENV{TESTDIR}/regression.diff.diff";
148153
my $res = $?;
149154

0 commit comments

Comments
 (0)