| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_2; |
| 4 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
| 5 |
SET SESSION wsrep_trx_fragment_size = 1; |
| 6 |
SET AUTOCOMMIT=OFF; |
| 7 |
START TRANSACTION; |
| 8 |
INSERT INTO t1 VALUES (1); |
| 9 |
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2; |
| 10 |
connection node_2a; |
| 11 |
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log; |
| 12 |
COUNT(*) > 0 |
| 13 |
1 |
| 14 |
connection node_1; |
| 15 |
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log; |
| 16 |
COUNT(*) > 0 |
| 17 |
1 |
| 18 |
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
| 19 |
SELECT COUNT(*) > 0 FROM t1; |
| 20 |
COUNT(*) > 0 |
| 21 |
1 |
| 22 |
connection node_2a; |
| 23 |
SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1'; |
| 24 |
SET SESSION wsrep_sync_wait=0; |
| 25 |
connection node_2; |
| 26 |
INSERT INTO t1 VALUES (2); |
| 27 |
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
| 28 |
connection node_2a; |
| 29 |
connection node_2; |
| 30 |
COMMIT; |
| 31 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 32 |
connection node_2a; |
| 33 |
SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0'; |
| 34 |
DROP TABLE t1; |
| 35 |
CALL mtr.add_suppression("replication aborted"); |
| 36 |
CALL mtr.add_suppression("WSREP: fragment replication failed: 3"); |
| 37 |
CALL mtr.add_suppression("WSREP: failed to send SR rollback for "); |
| 38 |
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3; |
| 39 |
connection node_3; |