|
7 | 7 | --source include/galera_cluster.inc
|
8 | 8 | --source include/have_innodb.inc
|
9 | 9 |
|
| 10 | +--let $galera_connection_name = node_3 |
| 11 | +--let $galera_server_number = 3 |
| 12 | +--source include/galera_connect.inc |
| 13 | +--let $wsrep_cluster_address_node3 = `SELECT @@wsrep_cluster_address` |
| 14 | + |
| 15 | +# Save original auto_increment_offset values. |
| 16 | +--let $node_1=node_1 |
| 17 | +--let $node_2=node_2 |
| 18 | +--let $node_3=node_3 |
| 19 | +--source ../galera/include/auto_increment_offset_save.inc |
| 20 | + |
10 | 21 | --connection node_1
|
11 | 22 | --let $wsrep_provider_options_node1 = `SELECT @@wsrep_provider_options`
|
12 | 23 | SET GLOBAL wsrep_provider_options = 'evs.inactive_timeout=PT100M; evs.suspect_timeout=PT1S';
|
13 | 24 |
|
14 | 25 | --connection node_2
|
15 |
| ---source include/wait_until_connected_again.inc |
16 | 26 | --let $wsrep_provider_options_node2 = `SELECT @@wsrep_provider_options`
|
17 | 27 | SET GLOBAL wsrep_provider_options = 'evs.inactive_timeout=PT100M; evs.suspect_timeout=PT1S';
|
18 | 28 |
|
19 |
| ---let $galera_connection_name = node_3 |
20 |
| ---let $galera_server_number = 3 |
21 |
| ---source include/galera_connect.inc |
22 |
| ---connection node_3 |
23 |
| ---source include/wait_until_connected_again.inc |
24 |
| ---let $wsrep_cluster_address_node3 = `SELECT @@wsrep_cluster_address` |
25 |
| - |
26 | 29 | # Suspend node #3
|
27 | 30 |
|
| 31 | +--connection node_3 |
28 | 32 | --source include/galera_suspend.inc
|
29 | 33 | --sleep 5
|
30 | 34 |
|
31 | 35 | # Confirm that the other nodes have booted it out
|
32 | 36 |
|
33 | 37 | --connection node_1
|
34 | 38 | --source include/wait_until_connected_again.inc
|
35 |
| -SET SESSION wsrep_sync_wait = 0; |
| 39 | +SET SESSION wsrep_sync_wait=0; |
36 | 40 | SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
37 | 41 | --disable_query_log
|
38 | 42 | --eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_node1';
|
39 | 43 | --enable_query_log
|
40 |
| - |
41 | 44 | --source include/wait_until_connected_again.inc
|
42 |
| -CREATE TABLE t1 (f1 INTEGER); |
| 45 | + |
| 46 | +CREATE TABLE t1 (f1 INTEGER) engine=InnoDB; |
43 | 47 | INSERT INTO t1 VALUES (1);
|
44 | 48 |
|
45 | 49 | --connection node_2
|
46 |
| -SET SESSION wsrep_sync_wait = 0; |
| 50 | +--source include/wait_until_connected_again.inc |
| 51 | +SET SESSION wsrep_sync_wait=0; |
47 | 52 | SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
48 | 53 | --disable_query_log
|
49 | 54 | --eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_node2';
|
50 | 55 | --enable_query_log
|
51 |
| - |
52 | 56 | --source include/wait_until_connected_again.inc
|
53 |
| -SET SESSION wsrep_sync_wait = DEFAULT; |
54 |
| -SELECT COUNT(*) = 1 FROM t1; |
55 |
| -DROP TABLE t1; |
| 57 | + |
| 58 | +SET SESSION wsrep_sync_wait = 15; |
| 59 | +SELECT COUNT(*) FROM t1; |
56 | 60 |
|
57 | 61 | # Reconnect node #3 so that MTR's end-of-test checks can run
|
58 | 62 |
|
59 | 63 | --source include/galera_resume.inc
|
60 | 64 | --connection node_3
|
61 | 65 | --source include/wait_until_connected_again.inc
|
62 | 66 |
|
63 |
| -CALL mtr.add_suppression("WSREP: gcs_caused() returned -1 \\(Operation not permitted\\)"); |
| 67 | +CALL mtr.add_suppression("WSREP: gcs_caused.*"); |
| 68 | +CALL mtr.add_suppression("WSREP: gcs/src/gcs_core.cpp:core_handle_uuid_msg.*"); |
64 | 69 |
|
65 | 70 | --disable_query_log
|
66 | 71 | --eval SET GLOBAL wsrep_cluster_address = '$wsrep_cluster_address_node3';
|
67 | 72 | --enable_query_log
|
68 | 73 | --source include/wait_until_connected_again.inc
|
| 74 | + |
| 75 | +SET SESSION wsrep_sync_wait = 15; |
| 76 | +SELECT COUNT(*) FROM t1; |
| 77 | + |
| 78 | +--connection node_1 |
| 79 | +DROP TABLE t1; |
| 80 | +# Restore original auto_increment_offset values. |
| 81 | +--source ../galera/include/auto_increment_offset_restore.inc |
| 82 | + |
0 commit comments