Debian Codegraph @

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

raw
1 include/have_replication_observers_example_plugin.inc
2 include/group_replication.inc
3 Warnings:
4 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
5 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.
6 [connection server1]
7
8 # 1. Load plugin replication observers example on server1
9 include/install_replication_observers_example.inc
10
11 # 2. Load plugin replication observers example on server2
12 [connection server2]
13 include/install_replication_observers_example.inc
14
15 # 3. Execute UDF that will transmit tag and message over GR send service
16 SELECT group_replication_service_message_send("tag", "Server2 sent a message");
17 group_replication_service_message_send("tag", "Server2 sent a message")
18 The tag and message was sent to the group.
19
20 # 4. On server 1 execute UDF that will transmit tag and message over GR
21 # send service
22 [connection server1]
23 SELECT group_replication_service_message_send("tag", "Server1 sent a message");
24 group_replication_service_message_send("tag", "Server1 sent a message")
25 The tag and message was sent to the group.
26
27 # 5. To decrease failure rate on assert_grep we do a transaction with
28 # AFTER consistency to add some rounds on GCS communication and stop GR on
29 # server1, which will make it wait for the delivery of new view, and
30 # that will happen only after delivery of service message. This will
31 # give some time to server to receive and write it to error log.
32 SET @@SESSION.group_replication_consistency= 'AFTER';
33 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY , b INT);
34 DROP TABLE test.t1;
35 include/stop_group_replication.inc
36
37 # 6. Assert server1 received both messages transmitted by GR message
38 # delivery
39 include/assert_grep.inc [Server 1 received message from server 2.]
40 include/assert_grep.inc [Server 1 received message from itself.]
41
42 # 7. Assert server2 received both messages transmitted by GR message
43 # delivery
44 [connection server2]
45 include/assert_grep.inc [Server 2 received message from itself.]
46 include/assert_grep.inc [Server 2 received message from server 1.]
47
48 # 8. Cleanup
49 include/uninstall_replication_observers_example.inc
50 [connection server1]
51 include/start_group_replication.inc
52 include/uninstall_replication_observers_example.inc
53 include/group_replication_end.inc