Commit ae0361ab authored by Jan Lindström's avatar Jan Lindström

MDEV-13881: galera.partition failed in buildbot with wrong result

Add proper wait conditions to second node before continuing test.
parent 3b646632
...@@ -30,7 +30,6 @@ MW-388 : MDEV-13549 Galera test failures ...@@ -30,7 +30,6 @@ MW-388 : MDEV-13549 Galera test failures
galera_sst_mysqldump_with_key : MDEV-16890 Galera test failure galera_sst_mysqldump_with_key : MDEV-16890 Galera test failure
galera_binlog_stmt_autoinc: MDEV-17106 Test failure on galera.galera_binlog_stmt_autoinc galera_binlog_stmt_autoinc: MDEV-17106 Test failure on galera.galera_binlog_stmt_autoinc
galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
partition : MDEV-13881 galera.partition failed in buildbot with wrong result
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion
galera_wan : MDEV-17259: Test failure on galera.galera_wan galera_wan : MDEV-17259: Test failure on galera.galera_wan
galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb
......
...@@ -109,9 +109,9 @@ DROP TABLE t1, p1; ...@@ -109,9 +109,9 @@ DROP TABLE t1, p1;
SET GLOBAL wsrep_load_data_splitting = ON; SET GLOBAL wsrep_load_data_splitting = ON;
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
SELECT COUNT(*) = 20002 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 20002 COUNT(*)
1 20002
wsrep_last_committed_diff wsrep_last_committed_diff
1 1
DROP TABLE t1; DROP TABLE t1;
...@@ -119,9 +119,9 @@ DROP TABLE t1; ...@@ -119,9 +119,9 @@ DROP TABLE t1;
SET GLOBAL wsrep_load_data_splitting = ON; SET GLOBAL wsrep_load_data_splitting = ON;
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
SELECT COUNT(*) = 101 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 101 COUNT(*)
1 101
wsrep_last_committed_diff wsrep_last_committed_diff
1 1
DROP TABLE t1; DROP TABLE t1;
...@@ -130,9 +130,9 @@ DROP TABLE t1; ...@@ -130,9 +130,9 @@ DROP TABLE t1;
SET GLOBAL wsrep_load_data_splitting = OFF; SET GLOBAL wsrep_load_data_splitting = OFF;
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
SELECT COUNT(*) = 20002 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 20002 COUNT(*)
1 20002
wsrep_last_committed_diff wsrep_last_committed_diff
1 1
DROP TABLE t1; DROP TABLE t1;
......
...@@ -129,7 +129,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY) ...@@ -129,7 +129,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--connection node_2 --connection node_2
SELECT COUNT(*) = 20002 FROM t1; --let $wait_condition = SELECT COUNT(*) = 20002 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) FROM t1;
# LOAD-ing 20002 rows causes 3 commits to be registered # LOAD-ing 20002 rows causes 3 commits to be registered
--disable_query_log --disable_query_log
...@@ -157,7 +160,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY) ...@@ -157,7 +160,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--connection node_2 --connection node_2
SELECT COUNT(*) = 101 FROM t1; --let $wait_condition = SELECT COUNT(*) = 101 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) FROM t1;
# LOAD-ing 101 rows causes 1 commit to be registered # LOAD-ing 101 rows causes 1 commit to be registered
--disable_query_log --disable_query_log
...@@ -186,7 +192,9 @@ CREATE TABLE t1 (pk INT PRIMARY KEY) ...@@ -186,7 +192,9 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--connection node_2 --connection node_2
SELECT COUNT(*) = 20002 FROM t1; --let $wait_condition = SELECT COUNT(*) = 20002 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) FROM t1;
# LOAD-ing 20002 rows causes 1 commit to be registered # LOAD-ing 20002 rows causes 1 commit to be registered
--disable_query_log --disable_query_log
......
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