| 1 |
# hang because of replicated FLUSH TABLE command |
| 2 |
|
| 3 |
--source include/galera_cluster.inc |
| 4 |
--source include/have_innodb.inc |
| 5 |
--source include/have_debug_sync.inc |
| 6 |
|
| 7 |
CREATE TABLE t (f1 INTEGER PRIMARY KEY) Engine=InnoDB; |
| 8 |
|
| 9 |
--connection node_1 |
| 10 |
SET DEBUG_SYNC = 'wsrep_before_certification WAIT_FOR continue'; |
| 11 |
--send INSERT INTO t values (1); |
| 12 |
|
| 13 |
--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 14 |
--connection node_1a |
| 15 |
SET SESSION wsrep_sync_wait = 0; |
| 16 |
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'debug sync point: wsrep_before_certification' |
| 17 |
--source include/wait_condition.inc |
| 18 |
|
| 19 |
--connection node_2 |
| 20 |
FLUSH TABLES; |
| 21 |
|
| 22 |
|
| 23 |
--connection node_1a |
| 24 |
SELECT SLEEP(1); |
| 25 |
|
| 26 |
SET DEBUG_SYNC= 'now SIGNAL continue'; |
| 27 |
|
| 28 |
--connection node_1 |
| 29 |
--reap |
| 30 |
|
| 31 |
# Cleanup |
| 32 |
DROP TABLE t; |
| 33 |
--connection node_1a |
| 34 |
SET DEBUG_SYNC= 'RESET'; |