| 1 |
# |
| 2 |
# MDEV-21613 - galera_sr.GCF-1018B MTR failed: |
| 3 |
# Failed to open table mysql.wsrep_streaming_log for writing |
| 4 |
# |
| 5 |
# A BF abort right before fragment removal caused this error to |
| 6 |
# be logged to the error log. |
| 7 |
# |
| 8 |
--source include/galera_cluster.inc |
| 9 |
--source include/have_debug_sync.inc |
| 10 |
|
| 11 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY); |
| 12 |
|
| 13 |
--connection node_1 |
| 14 |
SET SESSION wsrep_trx_fragment_size = 1; |
| 15 |
SET DEBUG_SYNC = "wsrep_before_fragment_removal SIGNAL fragment_removal_reached WAIT_FOR fragment_removal_continue"; |
| 16 |
START TRANSACTION; |
| 17 |
INSERT INTO t1 VALUES(1), (2); |
| 18 |
--send COMMIT |
| 19 |
|
| 20 |
--connect node_ctrl, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 21 |
--connection node_ctrl |
| 22 |
SET DEBUG_SYNC = "now WAIT_FOR fragment_removal_reached"; |
| 23 |
|
| 24 |
--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 25 |
--connection node_1a |
| 26 |
TRUNCATE TABLE t1; |
| 27 |
|
| 28 |
--connection node_1 |
| 29 |
--error ER_LOCK_DEADLOCK |
| 30 |
--reap |
| 31 |
|
| 32 |
--connection node_ctrl |
| 33 |
SET DEBUG_SYNC = 'RESET'; |
| 34 |
DROP TABLE t1; |