Debian Codegraph @

mysql-test/suite/group_replication/r/gr_transaction_in_remote_applier_recovery.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6
7 # 1. Create table t1 and LOCK it on server2.
8 CREATE TABLE test.t1 (c1 int primary key);
9 include/rpl_sync.inc
10 [connection server2]
11 LOCK TABLE test.t1 READ;
12
13 # 2. Create some transactions on server1.
14 [connection server1]
15 INSERT INTO test.t1 VALUES (1);
16 INSERT INTO test.t1 VALUES (2);
17
18 # 3. Wait for transactions to appear on applier queue on server2.
19 [connection server1]
20 [connection server2]
21
22 # 4. UNLOCK tables on server2.
23 UNLOCK TABLES;
24
25 # 5. Wait for applier queue on both servers to be 0.
26 [connection server1]
27 [connection server2]
28
29 # 6. Stop GR on server1 and server2.
30 [connection server1]
31 include/stop_group_replication.inc
32 [connection server2]
33 include/stop_group_replication.inc
34
35 # 7. Start GR on server1 and server2.
36 [connection server1]
37 include/start_and_bootstrap_group_replication.inc
38 [connection server2]
39 include/start_group_replication.inc
40
41 # 8. Confirm COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE is 0
42 # when all servers are online.
43 [connection server1]
44 [connection server2]
45
46 # 9. Cleanup.
47 [connection server1]
48 DROP TABLE test.t1;
49 include/group_replication_end.inc