| 1 |
include/group_replication.inc [rpl_server_count=3] |
| 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 |
######################################################################### |
| 8 |
# 01. On M1, connection thread(T1) executes the select query on |
| 9 |
# performance_schema.replication_group_communication_information |
| 10 |
# itable, then wait on sync point. |
| 11 |
[connection server1] |
| 12 |
# Adding debug point 'group_replication_wait_before_group_communication_information_read_column_value' to @@GLOBAL.debug |
| 13 |
SELECT write_consensus_leaders_preferred FROM performance_schema.replication_group_communication_information; |
| 14 |
|
| 15 |
######################################################################### |
| 16 |
# 02. Verify that T1 is waiting on sync point. |
| 17 |
[connection server_1_2] |
| 18 |
|
| 19 |
######################################################################### |
| 20 |
# 03. Remove the debug flag and execute the select query from another |
| 21 |
# connection. |
| 22 |
# Removing debug point 'group_replication_wait_before_group_communication_information_read_column_value' from @@GLOBAL.debug |
| 23 |
SELECT write_consensus_leaders_preferred FROM performance_schema.replication_group_communication_information; |
| 24 |
write_consensus_leaders_preferred |
| 25 |
LEADERS |
| 26 |
|
| 27 |
######################################################################## |
| 28 |
# 04. Signal to continue T1 and verify that select result is expected |
| 29 |
# and all members are online. |
| 30 |
SET DEBUG_SYNC= 'now SIGNAL signal.after_group_communication_information_read_column_value_continue'; |
| 31 |
[connection server1] |
| 32 |
write_consensus_leaders_preferred |
| 33 |
LEADERS |
| 34 |
|
| 35 |
################################################################ |
| 36 |
# 05. Cleanup |
| 37 |
include/group_replication_end.inc |