| 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 |
# a) Server1 is in ONLINE state. Expect group_replication_primary_member EMPTY. |
| 8 |
# |
| 9 |
[connection server1] |
| 10 |
include/start_and_bootstrap_group_replication.inc |
| 11 |
include/gr_wait_for_member_state.inc |
| 12 |
include/assert.inc [Verify MEMBER_STATE is ONLINE] |
| 13 |
include/assert.inc [Verify group_replication_primary_member is EMPTY("")] |
| 14 |
# |
| 15 |
# b) Server2 is in OFFLINE state. Expect group_replication_primary_member EMPTY. |
| 16 |
# |
| 17 |
[connection server2] |
| 18 |
SET SESSION sql_log_bin= 0; |
| 19 |
call mtr.add_suppression("Table 't1' already exists"); |
| 20 |
call mtr.add_suppression("The applier thread execution was aborted. Unable to process more transactions, this member will now leave the group"); |
| 21 |
call mtr.add_suppression("Fatal error during execution on the Applier process of Group Replication. The server will now leave the group."); |
| 22 |
call mtr.add_suppression("Unable to ensure the execution of group transactions received during recovery."); |
| 23 |
call mtr.add_suppression("Fatal error during the Recovery process of Group Replication. The server will leave the group."); |
| 24 |
call mtr.add_suppression("The server was automatically set into read only mode after an error was detected."); |
| 25 |
call mtr.add_suppression("Skipping leave operation: concurrent attempt to leave the group is on-going."); |
| 26 |
call mtr.add_suppression("Replica SQL for channel 'group_replication_applier': ... The replica coordinator and worker threads are stopped,*"); |
| 27 |
SET SESSION sql_log_bin= 1; |
| 28 |
include/assert.inc [Verify MEMBER_STATE is OFFLINE] |
| 29 |
include/assert.inc [Verify group_replication_primary_member is EMPTY("")] |
| 30 |
# |
| 31 |
# c) Server2 is in RECOVERING state. Expect group_replication_primary_member EMPTY. |
| 32 |
# |
| 33 |
SET sql_log_bin=0; |
| 34 |
CREATE TABLE t1 (a INT PRIMARY KEY NOT NULL); |
| 35 |
SET sql_log_bin=1; |
| 36 |
SET @@GLOBAL.DEBUG='+d,recovery_thread_wait_before_finish'; |
| 37 |
include/start_group_replication.inc |
| 38 |
include/assert.inc [Verify MEMBER_STATE is RECOVERING] |
| 39 |
include/assert.inc [Verify group_replication_primary_member is EMPTY("")] |
| 40 |
# |
| 41 |
# d) Server2 is in ERROR state. Expect group_replication_primary_member EMPTY. |
| 42 |
# |
| 43 |
[connection server2] |
| 44 |
SET DEBUG_SYNC= "now WAIT_FOR signal.recovery_thread_wait_before_finish_reached"; |
| 45 |
SET @@GLOBAL.DEBUG='-d,recovery_thread_wait_before_finish'; |
| 46 |
SET DEBUG_SYNC= "now SIGNAL signal.recovery_end"; |
| 47 |
include/gr_wait_for_member_state.inc |
| 48 |
SET DEBUG_SYNC= 'RESET'; |
| 49 |
[connection server1] |
| 50 |
CREATE TABLE t1 (a INT PRIMARY KEY NOT NULL); |
| 51 |
[connection server2] |
| 52 |
include/gr_wait_for_member_state.inc |
| 53 |
include/rpl_gr_wait_for_number_of_members.inc |
| 54 |
include/assert.inc [Verify MEMBER_STATE is ERROR] |
| 55 |
include/assert.inc [Verify group_replication_primary_member is EMPTY("")] |
| 56 |
# |
| 57 |
# e) Server2 is in ONLINE state. Expect group_replication_primary_member EMPTY. |
| 58 |
# |
| 59 |
include/stop_group_replication.inc |
| 60 |
SET sql_log_bin=0; |
| 61 |
DROP TABLE t1; |
| 62 |
SET sql_log_bin=1; |
| 63 |
include/start_group_replication.inc |
| 64 |
include/gr_wait_for_member_state.inc |
| 65 |
include/assert.inc [Verify MEMBER_STATE is ONLINE] |
| 66 |
include/assert.inc [Verify group_replication_primary_member is EMPTY("")] |
| 67 |
[connection server1] |
| 68 |
DROP TABLE t1; |
| 69 |
include/group_replication_end.inc |