← Back
Editing: gr_incorrect_group_name_join.test
################################################################################ # Validate that when a member tries to join a group using a different # group name it errors out. # All other group communication options are correct. # # Test: # 0. The test requires two servers: M1 and M2. # 1. Bootstrap a group with M1 with a group_name. # 2. Set different group_name and start GR on M2. Expect error. # 3. Validate that M2 is OFFLINE. On M1 number of members in a group is 1. ################################################################################ --source include/big_test.inc --let $group_replication_group_name= 4fb60aed-1059-11e6-ad06-00212844d44e --source ../inc/have_group_replication_plugin.inc --let $rpl_skip_group_replication_start= 1 --source ../inc/group_replication.inc --let $rpl_connection_name= server1 --source include/rpl_connection.inc --source ../inc/start_and_bootstrap_group_replication.inc SET SESSION sql_log_bin= 0; call mtr.add_suppression("The request to add .*:[0-9]* to the group has been rejected because it is aimed at another group"); SET SESSION sql_log_bin= 1; --let $rpl_connection_name= server2 --source include/rpl_connection.inc SET SESSION sql_log_bin= 0; call mtr.add_suppression("Timeout on wait for view after joining group"); call mtr.add_suppression("Timeout while waiting for the group communication engine to be ready!"); call mtr.add_suppression("The group communication engine is not ready for the member to join. Local port: *.*"); call mtr.add_suppression("read failed"); call mtr.add_suppression("The member was unable to join the group. Local port: *.*"); SET SESSION sql_log_bin= 1; SET GLOBAL group_replication_group_name= "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"; --error ER_GROUP_REPLICATION_CONFIGURATION START GROUP_REPLICATION; --let $assert_text= Server 2 is OFFLINE --let $assert_cond= [SELECT COUNT(*) FROM performance_schema.replication_group_members WHERE member_state="OFFLINE"] = 1 --source include/assert.inc --let $rpl_connection_name= server1 --source include/rpl_connection.inc --let $group_replication_number_of_members= 1 --source ../inc/gr_wait_for_number_of_members.inc --source ../inc/group_replication_end.inc
Save File
Cancel