Debian Codegraph @

mysql-test/suite/group_replication/r/gr_lower_version_member.result

raw
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 # Setup a member in a way that his version is higher than member 2
8 #
9 server1
10 SET @debug_saved= @@GLOBAL.DEBUG;
11 SET @@GLOBAL.DEBUG= '+d,group_replication_compatibility_higher_major_version';
12 include/start_and_bootstrap_group_replication.inc
13 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
14 INSERT INTO t1 VALUES (1);
15 #
16 # Try to add a new member that has a lower version than member 1
17 #
18 server2
19 SET session sql_log_bin=0;
20 call mtr.add_suppression("Member version is incompatible with the group");
21 SET session sql_log_bin=1;
22 SET GLOBAL group_replication_group_name= "6f6932e0-03d9-11e5-b939-0800200c9a66";
23 START GROUP_REPLICATION;
24 ERROR HY000: The server is not configured properly to be an active member of the group. Please see more details on error log.
25 #
26 # Check all is fine when both have the same version
27 #
28 server1
29 SET @@GLOBAL.DEBUG= @debug_save;
30 include/stop_group_replication.inc
31 include/start_and_bootstrap_group_replication.inc
32 server2
33 include/start_group_replication.inc
34 include/assert.inc [On the recovered member, the table should contain 1 elements]
35 #
36 # Clean up
37 #
38 DROP TABLE t1;
39 include/group_replication_end.inc