Commit 27ae38e0 authored by Jan Lindström's avatar Jan Lindström

MDEV-18590: galera.versioning_trx_id: Test failure: mysqltest: Result content mismatch

Add wsrep sync waits and if expected result is not reached print
out current contents.
parent 780d7710
...@@ -5,6 +5,7 @@ connection node_1; ...@@ -5,6 +5,7 @@ connection node_1;
create table t1 (a int, s bigint unsigned as row start, e bigint unsigned as row end, period for system_time(s,e)) engine=InnoDB with system versioning; create table t1 (a int, s bigint unsigned as row start, e bigint unsigned as row end, period for system_time(s,e)) engine=InnoDB with system versioning;
insert into t1 (a) values (1),(2); insert into t1 (a) values (1),(2);
connection node_2; connection node_2;
set session wsrep_sync_wait=15;
insert into t1 (a) values (3),(4); insert into t1 (a) values (3),(4);
select a from t1; select a from t1;
a a
...@@ -19,6 +20,7 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti ...@@ -19,6 +20,7 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti
count(*) count(*)
0 0
connection node_3; connection node_3;
set session wsrep_sync_wait=15;
insert into t1 (a) values (5),(6); insert into t1 (a) values (5),(6);
select a from t1; select a from t1;
a a
...@@ -35,6 +37,7 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti ...@@ -35,6 +37,7 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti
count(*) count(*)
0 0
connection node_1; connection node_1;
set session wsrep_sync_wait=15;
select a from t1; select a from t1;
a a
1 1
...@@ -50,5 +53,4 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti ...@@ -50,5 +53,4 @@ select count(*) from mysql.transaction_registry where begin_timestamp>=commit_ti
count(*) count(*)
0 0
drop table t1; drop table t1;
disconnect node_2; disconnect node_3;
disconnect node_1;
...@@ -7,22 +7,34 @@ create table t1 (a int, s bigint unsigned as row start, e bigint unsigned as row ...@@ -7,22 +7,34 @@ create table t1 (a int, s bigint unsigned as row start, e bigint unsigned as row
insert into t1 (a) values (1),(2); insert into t1 (a) values (1),(2);
--connection node_2 --connection node_2
set session wsrep_sync_wait=15;
insert into t1 (a) values (3),(4); insert into t1 (a) values (3),(4);
select a from t1; select a from t1;
select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0'; select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0';
if (`SELECT count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp`) {
select * from mysql.transaction_registry;
}
select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp; select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp;
--connection node_3 --connection node_3
set session wsrep_sync_wait=15;
insert into t1 (a) values (5),(6); insert into t1 (a) values (5),(6);
select a from t1; select a from t1;
select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0'; select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0';
if (`SELECT count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp`) {
select * from mysql.transaction_registry;
}
select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp; select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp;
--connection node_1 --connection node_1
set session wsrep_sync_wait=15;
select a from t1; select a from t1;
select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0'; select count(*) from mysql.transaction_registry where begin_timestamp='0-0-0';
if (`SELECT count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp`) {
select * from mysql.transaction_registry;
}
select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp; select count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp;
drop table t1; drop table t1;
--source include/galera_end.inc --disconnect node_3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment