Skip to content

Commit f01a16b

Browse files
philip-galeraNirbhay Choubey
authored andcommitted
Galera MTR Tests: fortify galera_bf_abort_flush_for_export against sporadic failures.
1 parent 30c6ac3 commit f01a16b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ SET SESSION wsrep_sync_wait = 0;
66
UNLOCK TABLES;
77
COMMIT;
88
SET AUTOCOMMIT=ON;
9-
SELECT * FROM t1;
10-
f1
11-
2
9+
SET SESSION wsrep_sync_wait = 7;
10+
SELECT COUNT(*) = 1 FROM t1;
11+
COUNT(*) = 1
12+
1
1213
wsrep_local_aborts_increment
1314
1
1415
DROP TABLE t1;

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ UNLOCK TABLES;
2727

2828
COMMIT;
2929
SET AUTOCOMMIT=ON;
30-
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1
31-
--source include/wait_condition.inc
32-
SELECT * FROM t1;
30+
SET SESSION wsrep_sync_wait = 7;
31+
SELECT COUNT(*) = 1 FROM t1;
3332

3433
--let $wsrep_local_bf_aborts_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_bf_aborts'`
3534

0 commit comments

Comments
 (0)