Current Path : /usr/opt/mysql57/mysql-test/suite/group_replication/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/group_replication/r/gr_set_gtid_mode.result |
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] SET SESSION sql_log_bin= 0; include/gtid_utils.inc SET SESSION sql_log_bin= 1; SET SESSION sql_log_bin= 0; include/gtid_utils.inc SET SESSION sql_log_bin= 1; ############################################################ # 1. Validate that it is not possible to change GTID_MODE to # others modes except ON when Group Replication is running. SET @@GLOBAL.GTID_MODE= OFF; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. include/assert.inc [GTID_MODE must be ON] SET @@GLOBAL.GTID_MODE= OFF_PERMISSIVE; ERROR HY000: The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions. include/assert.inc [GTID_MODE must be ON] SET @@GLOBAL.GTID_MODE= ON_PERMISSIVE; ERROR HY000: SET @@GLOBAL.GTID_MODE = ON_PERMISSIVE is not allowed because group replication requires @@GLOBAL.GTID_MODE=ON. include/assert.inc [GTID_MODE must be ON] SET @@GLOBAL.GTID_MODE= ON; include/assert.inc [GTID_MODE must be ON] ############################################################ # 2. Validate that it is possible to change GTID_MODE to other # modes than ON when Group Replication is not running. # But start group replication will fail after that. include/stop_group_replication.inc SET @@GLOBAL.GTID_MODE= ON_PERMISSIVE; include/assert.inc [GTID_MODE must be ON_PERMISSIVE] START GROUP_REPLICATION; ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log. SET @@GLOBAL.GTID_MODE= OFF_PERMISSIVE; include/assert.inc [GTID_MODE must be OFF_PERMISSIVE] START GROUP_REPLICATION; ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log. SET @@GLOBAL.GTID_MODE= OFF; include/assert.inc [GTID_MODE must be OFF] START GROUP_REPLICATION; ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log. SET SESSION sql_log_bin= 0; call mtr.add_suppression("Gtid mode should be ON for Group Replication"); SET SESSION sql_log_bin= 1; ############################################################ # 3. Change GTID_MODE back to ON and check that Group # Replication will work properly. SET @@GLOBAL.GTID_MODE= OFF_PERMISSIVE; SET @@GLOBAL.GTID_MODE= ON_PERMISSIVE; SET @@GLOBAL.GTID_MODE= ON; include/start_group_replication.inc CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); include/rpl_sync.inc ############################################################ # 4. Check that GTID_EXECUTED on server 1 contains all # transactions. # Also check that data is on tables. include/assert.inc [GTID_EXECUTED must contain all committed GTIDs] include/assert.inc ['There is a value 1 in table t1'] include/assert.inc [GTID_EXECUTED must contain all committed GTIDs] include/assert.inc ['There is a value 1 in table t1'] ############################################################ # 5. Clean up. DROP TABLE t1; SET SESSION sql_log_bin= 0; include/gtid_utils_end.inc SET SESSION sql_log_bin= 1; SET SESSION sql_log_bin= 0; include/gtid_utils_end.inc SET SESSION sql_log_bin= 1; include/group_replication_end.inc