58 lines
2.5 KiB
Plaintext
58 lines
2.5 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]
|
|
[connection server2]
|
|
SET SESSION sql_log_bin= 0;
|
|
call mtr.add_suppression(".*The member contains transactions not present *.*");
|
|
SET SESSION sql_log_bin= 1;
|
|
#
|
|
# Setup the first member
|
|
#
|
|
[connection server1]
|
|
include/start_and_bootstrap_group_replication.inc
|
|
CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
include/assert.inc [The first member has 3 transaction belonging to the group]
|
|
#
|
|
# Verify that server 2 can't enter the group
|
|
# Verify that error messages are logged.
|
|
#
|
|
[connection server2]
|
|
SET GTID_NEXT= "aaaaaaaa-bbbb-aaaa-bbbb-aaaaaaaaaaaa:1";
|
|
CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
|
|
SET GTID_NEXT= "AUTOMATIC";
|
|
include/assert.inc [The member shall contain a local transaction]
|
|
SET GLOBAL group_replication_group_name= "c645abc0-ebb9-11e5-a837-0800200c9a66";
|
|
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.
|
|
Matching lines are:
|
|
DATE_TIME [ERROR] [Repl] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: aaaaaaaa-bbbb-aaaa-bbbb-aaaaaaaaaaaa:1 > Group transactions: c645abc0-ebb9-11e5-a837-0800200c9a66:1-3'
|
|
Occurrences of 'This member has more executed transactions than those present in the group. Local transactions' in the input file: 1
|
|
Matching lines are:
|
|
DATE_TIME [ERROR] [Repl] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
|
|
Occurrences of 'The member contains transactions not present in the group. The member will now exit the group.' in the input file: 1
|
|
#
|
|
# Test that server 2 can now join after extra data is removed.
|
|
#
|
|
[connection server1]
|
|
include/rpl_gr_wait_for_number_of_members.inc
|
|
[connection server2]
|
|
DROP TABLE t2;
|
|
RESET MASTER;
|
|
include/start_group_replication.inc
|
|
#
|
|
# Verify all is fine
|
|
#
|
|
[connection server1]
|
|
INSERT INTO t1 VALUES (2);
|
|
include/rpl_sync.inc
|
|
[connection server2]
|
|
include/assert.inc ['There are two values in table t1']
|
|
#
|
|
# Cleaning up
|
|
#
|
|
DROP TABLE t1;
|
|
include/group_replication_end.inc
|