| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
connection node_2; |
| 5 |
connection node_3; |
| 6 |
connection node_1; |
| 7 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=INNODB; |
| 8 |
INSERT INTO t1 VALUES (1); |
| 9 |
connection node_2; |
| 10 |
SET GLOBAL wsrep_provider_options='gmcast.isolate=1'; |
| 11 |
connection node_1; |
| 12 |
connection node_2; |
| 13 |
SET SESSION wsrep_sync_wait = 0; |
| 14 |
SET SESSION wsrep_dirty_reads = 1; |
| 15 |
SELECT f1 FROM t1; |
| 16 |
f1 |
| 17 |
1 |
| 18 |
USE test; |
| 19 |
SHOW CREATE TABLE t1; |
| 20 |
Table Create Table |
| 21 |
t1 CREATE TABLE `t1` ( |
| 22 |
`f1` int(11) DEFAULT NULL |
| 23 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 24 |
LOCK TABLE t1 WRITE; |
| 25 |
UNLOCK TABLES; |
| 26 |
FLUSH TABLES WITH READ LOCK; |
| 27 |
UNLOCK TABLES; |
| 28 |
PREPARE stmt_select FROM 'SELECT f1 FROM t1'; |
| 29 |
EXECUTE stmt_select; |
| 30 |
f1 |
| 31 |
1 |
| 32 |
PREPARE stmt_update FROM 'UPDATE t1 SET f1 = f1 + f1'; |
| 33 |
SET GLOBAL wsrep_dirty_reads = 1; |
| 34 |
SET GLOBAL wsrep_sync_wait = 0; |
| 35 |
SET GLOBAL wsrep_dirty_reads = 0; |
| 36 |
SET GLOBAL wsrep_sync_wait = 15; |
| 37 |
SET SESSION wsrep_dirty_reads = 1; |
| 38 |
INSERT INTO t1 SELECT * FROM t1; |
| 39 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 40 |
DELETE FROM t1; |
| 41 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 42 |
UPDATE t1 SET f1 = f1 + 1; |
| 43 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 44 |
DROP TABLE t1; |
| 45 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 46 |
EXECUTE stmt_update; |
| 47 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 48 |
SET SESSION wsrep_dirty_reads = 0; |
| 49 |
SELECT * FROM t1; |
| 50 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 51 |
EXECUTE stmt_select; |
| 52 |
ERROR 08S01: WSREP has not yet prepared node for application use |
| 53 |
SELECT COUNT(*) > 0 FROM INFORMATION_SCHEMA.PROCESSLIST; |
| 54 |
COUNT(*) > 0 |
| 55 |
1 |
| 56 |
SET GLOBAL wsrep_provider_options='gmcast.isolate=0'; |
| 57 |
connection node_1; |
| 58 |
connection node_2; |
| 59 |
DROP TABLE t1; |