Skip to content

Commit ae0361a

Browse files
author
Jan Lindström
committed
MDEV-13881: galera.partition failed in buildbot with wrong result
Add proper wait conditions to second node before continuing test.
1 parent 3b64663 commit ae0361a

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ MW-388 : MDEV-13549 Galera test failures
3030
galera_sst_mysqldump_with_key : MDEV-16890 Galera test failure
3131
galera_binlog_stmt_autoinc: MDEV-17106 Test failure on galera.galera_binlog_stmt_autoinc
3232
galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
33-
partition : MDEV-13881 galera.partition failed in buildbot with wrong result
3433
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion
3534
galera_wan : MDEV-17259: Test failure on galera.galera_wan
3635
galera_pc_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb

mysql-test/suite/galera/r/partition.result

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ DROP TABLE t1, p1;
109109
SET GLOBAL wsrep_load_data_splitting = ON;
110110
CREATE TABLE t1 (pk INT PRIMARY KEY)
111111
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
112-
SELECT COUNT(*) = 20002 FROM t1;
113-
COUNT(*) = 20002
114-
1
112+
SELECT COUNT(*) FROM t1;
113+
COUNT(*)
114+
20002
115115
wsrep_last_committed_diff
116116
1
117117
DROP TABLE t1;
118118
# Case 2: wsrep_load_data_splitting = ON & LOAD DATA with 101 entries.
119119
SET GLOBAL wsrep_load_data_splitting = ON;
120120
CREATE TABLE t1 (pk INT PRIMARY KEY)
121121
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
122-
SELECT COUNT(*) = 101 FROM t1;
123-
COUNT(*) = 101
124-
1
122+
SELECT COUNT(*) FROM t1;
123+
COUNT(*)
124+
101
125125
wsrep_last_committed_diff
126126
1
127127
DROP TABLE t1;
@@ -130,9 +130,9 @@ DROP TABLE t1;
130130
SET GLOBAL wsrep_load_data_splitting = OFF;
131131
CREATE TABLE t1 (pk INT PRIMARY KEY)
132132
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
133-
SELECT COUNT(*) = 20002 FROM t1;
134-
COUNT(*) = 20002
135-
1
133+
SELECT COUNT(*) FROM t1;
134+
COUNT(*)
135+
20002
136136
wsrep_last_committed_diff
137137
1
138138
DROP TABLE t1;

mysql-test/suite/galera/t/partition.test

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
129129
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
130130

131131
--connection node_2
132-
SELECT COUNT(*) = 20002 FROM t1;
132+
--let $wait_condition = SELECT COUNT(*) = 20002 FROM t1;
133+
--source include/wait_condition.inc
134+
135+
SELECT COUNT(*) FROM t1;
133136

134137
# LOAD-ing 20002 rows causes 3 commits to be registered
135138
--disable_query_log
@@ -157,7 +160,10 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
157160
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
158161

159162
--connection node_2
160-
SELECT COUNT(*) = 101 FROM t1;
163+
--let $wait_condition = SELECT COUNT(*) = 101 FROM t1;
164+
--source include/wait_condition.inc
165+
166+
SELECT COUNT(*) FROM t1;
161167

162168
# LOAD-ing 101 rows causes 1 commit to be registered
163169
--disable_query_log
@@ -186,7 +192,9 @@ CREATE TABLE t1 (pk INT PRIMARY KEY)
186192
--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
187193

188194
--connection node_2
189-
SELECT COUNT(*) = 20002 FROM t1;
195+
--let $wait_condition = SELECT COUNT(*) = 20002 FROM t1;
196+
--source include/wait_condition.inc
197+
SELECT COUNT(*) FROM t1;
190198

191199
# LOAD-ing 20002 rows causes 1 commit to be registered
192200
--disable_query_log

0 commit comments

Comments
 (0)