| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
connection node_2; |
| 5 |
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2; |
| 6 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY); |
| 7 |
connection node_2; |
| 8 |
SET SESSION wsrep_trx_fragment_size=1; |
| 9 |
START TRANSACTION; |
| 10 |
INSERT INTO t1 VALUES (1); |
| 11 |
SELECT COUNT(*) `Expect 1` FROM mysql.wsrep_streaming_log; |
| 12 |
Expect 1 |
| 13 |
1 |
| 14 |
SET @@global.debug_dbug="+d,ha_index_init_fail"; |
| 15 |
ROLLBACK; |
| 16 |
connection node_1; |
| 17 |
SET SESSION wsrep_sync_wait = 0; |
| 18 |
SELECT COUNT(*) `Expect 0` FROM mysql.wsrep_streaming_log; |
| 19 |
Expect 0 |
| 20 |
0 |
| 21 |
connection node_2; |
| 22 |
SET @@global.debug_dbug=""; |
| 23 |
SET SESSION wsrep_sync_wait = 0; |
| 24 |
SELECT COUNT(*) `Expect 1` FROM mysql.wsrep_streaming_log; |
| 25 |
Expect 1 |
| 26 |
1 |
| 27 |
connection node_2; |
| 28 |
SET GLOBAL wsrep_on=OFF; |
| 29 |
# restart |
| 30 |
SELECT COUNT(*) `Expect 0` FROM mysql.wsrep_streaming_log; |
| 31 |
Expect 0 |
| 32 |
0 |
| 33 |
DROP TABLE t1; |
| 34 |
CALL mtr.add_suppression("WSREP: Failed to init table for index scan"); |
| 35 |
CALL mtr.add_suppression("WSREP: Failed to apply write set"); |
| 36 |
CALL mtr.add_suppression("Failed to report last committed"); |