polardbxengine/mysql-test/suite/group_replication/r/gr_start_during_start.result

40 lines
2.1 KiB
Plaintext

include/group_replication.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection server1]
############################################################
# 1. Restart server1 with --group_replication_bootstrap_group=1,
# while setting a debug sync point just before bootstrap the
# group. This will mimic a start timeout due to all seeds be
# unreachable.
[connection server1]
SET @@GLOBAL.DEBUG= @debug_save;
# restart:--group_replication_group_name=GROUP_REPLICATION_GROUP_NAME --group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_bootstrap_group=1 --group_replication_start_on_boot=1 --loose-debug=+d,group_replication_before_joining_the_group
include/rpl_reconnect.inc
############################################################
# 2. While the start procedure is blocked on the sync point,
# do execute START GROUP_REPLICATION, it will fail.
include/assert.inc [The super_read_only mode must be 1]
include/assert.inc [The delayed initialization thread is running after boot]
[connection server_1]
START GROUP_REPLICATION;
############################################################
# 3. Unblock the start procedure, the server start will proceed
# and then the START GROUP_REPLICATION will fail.
[connection server1]
SET DEBUG_SYNC= "now SIGNAL signal.continue_group_join";
include/gr_wait_for_member_state.inc
[connection server_1]
ERROR HY000: The START GROUP_REPLICATION command failed since the group is already running.
include/assert.inc [The super_read_only mode must be 0]
############################################################
# 4. Clean up.
[connection server1]
SET @@GLOBAL.DEBUG= @debug_save;
include/group_replication_end.inc