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_autostart_on_install.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] # # Bootstrap group with server 1. # include/start_and_bootstrap_group_replication.inc # # Restart group replication on server 2 # with group_replication_start_on_boot=1 # # restart:--group_replication_local_address=GROUP_REPLICATION_LOCAL_ADDRESS --group_replication_group_seeds=GROUP_REPLICATION_GROUP_SEEDS --group_replication_start_on_boot=1 --group_replication_ip_whitelist=GROUP_REPLICATION_GROUP_WHITELIST include/rpl_reconnect.inc include/gr_wait_for_member_state.inc include/stop_group_replication.inc RESET SLAVE ALL FOR CHANNEL "group_replication_applier"; # # Add some data to server 1. # CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); include/gr_stop_applier_sql_thread.inc STOP SLAVE SQL_THREAD FOR CHANNEL "group_replication_applier"; # # On server 2 uninstall and install the plugin with auto start. # The plugin should start automatically and recover the missing data # UNINSTALL PLUGIN group_replication; INSTALL PLUGIN group_replication SONAME 'GROUP_REPLICATION'; # # On server 2 after restart, recovery should be stuck # Query execution is not allowed # include/gr_wait_for_member_state.inc INSERT INTO t1 VALUES (2); ERROR HY000: The MySQL server is running with the --super-read-only option so it cannot execute this statement # # After unblocking recovery all should be fine # include/gr_start_applier_sql_thread.inc START SLAVE SQL_THREAD FOR CHANNEL "group_replication_applier"; include/gr_wait_for_member_state.inc # # Clean up # DROP TABLE t1; include/rpl_sync.inc include/stop_group_replication.inc include/restore_group_replication_auto_increment.inc include/group_replication_end.inc