| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
connection node_2; |
| 5 |
connection node_3; |
| 6 |
connection node_2; |
| 7 |
SET SESSION wsrep_on=OFF; |
| 8 |
DROP SCHEMA test; |
| 9 |
connection node_3; |
| 10 |
SET SESSION wsrep_on=OFF; |
| 11 |
CREATE TABLE test.t1 (f1 INTEGER NOT NULL PRIMARY KEY) engine=innodb; |
| 12 |
connection node_1; |
| 13 |
CREATE TABLE test.t1 (f1 INTEGER NOT NULL PRIMARY KEY) engine=innodb; |
| 14 |
INSERT INTO test.t1 values (1); |
| 15 |
SHOW STATUS LIKE 'wsrep_cluster_status'; |
| 16 |
Variable_name Value |
| 17 |
wsrep_cluster_status Primary |
| 18 |
DROP TABLE test.t1; |
| 19 |
connection node_2; |
| 20 |
SET SESSION wsrep_sync_wait=0; |
| 21 |
SHOW STATUS LIKE 'wsrep_cluster_status'; |
| 22 |
Variable_name Value |
| 23 |
wsrep_cluster_status Disconnected |
| 24 |
disconnect node_2; |
| 25 |
connect node_2, 127.0.0.1, root, , mysql, $NODE_MYPORT_2; |
| 26 |
Killing server ... |
| 27 |
connection node_2; |
| 28 |
Starting node_2 |
| 29 |
# restart |
| 30 |
connection node_3; |
| 31 |
SET SESSION wsrep_sync_wait=0; |
| 32 |
SHOW STATUS LIKE 'wsrep_cluster_status'; |
| 33 |
Variable_name Value |
| 34 |
wsrep_cluster_status Disconnected |
| 35 |
disconnect node_3; |
| 36 |
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3; |
| 37 |
Killing server ... |
| 38 |
connection node_3; |
| 39 |
Starting node_3 |
| 40 |
# restart |
| 41 |
connection node_1; |
| 42 |
Nodes 2 and 3 started |
| 43 |
connection node_2; |
| 44 |
USE test; |
| 45 |
Node 2 synced |
| 46 |
CALL mtr.add_suppression("Slave SQL: Error 'Unknown database 'test'' on query\\. Default database: 'test'\\. Query: 'CREATE TABLE test\\.t1 \\(f1 INTEGER\\)', Error_code: 1049"); |
| 47 |
CALL mtr.add_suppression("Query apply failed"); |
| 48 |
CALL mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on "); |
| 49 |
CALL mtr.add_suppression("Plugin 'InnoDB' will be forced to shutdown"); |
| 50 |
CALL mtr.add_suppression("WSREP: Cert position .* less than last committed"); |
| 51 |
CALL mtr.add_suppression("WSREP: Sending JOIN failed: "); |
| 52 |
connection node_3; |
| 53 |
Node 3 synced |
| 54 |
CALL mtr.add_suppression("Slave SQL: Error 'Table 't1' already exists' on query\\. Default database: 'test'\\. Query: 'CREATE TABLE test\\.t1 \\(f1 INTEGER\\)', Error_code: 1050"); |
| 55 |
CALL mtr.add_suppression("Query apply failed"); |
| 56 |
CALL mtr.add_suppression("WSREP: Inconsistency detected: Inconsistent by consensus on "); |
| 57 |
CALL mtr.add_suppression("Plugin 'InnoDB' will be forced to shutdown"); |
| 58 |
CALL mtr.add_suppression("WSREP: Cert position .* less than last committed"); |
| 59 |
CALL mtr.add_suppression("WSREP: Sending JOIN failed: "); |