1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
############################################################
# 1. Setup a new group with four members.
# Four view_change transactions will be logged on member
# 4. All these transactions, when seen on member 4, will
# have indexes:
# server_id=4, last_committed=0, sequence_number=0
#
include/group_replication.inc [rpl_server_count=4]
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection server1]
############################################################
# 2. Execute some transactions on member 1, 2 and 3 that will
# be applied on member 4 through Group Replication applier.
#
[connection server1]
CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
[connection server2]
CREATE USER user@nohost1;
[connection server3]
SET GTID_NEXT= 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1';
BEGIN;
COMMIT;
SET GTID_NEXT= AUTOMATIC;
[connection server1]
DROP TABLE t1;
[connection server2]
CREATE TABLE t2 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
[connection server3]
CREATE DATABASE db1;
include/rpl_sync.inc
############################################################
# 3. Dump Group Replication applier channel relay log and
# validate its indexes on member 4.
#
[connection server4]
Matching lines are:
#time# ##:##:## server id 4 end_log_pos ## GTID last_committed=0 sequence_number=0 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 4 end_log_pos ## GTID last_committed=0 sequence_number=0 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 4 end_log_pos ## GTID last_committed=0 sequence_number=0 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 4 end_log_pos ## GTID last_committed=0 sequence_number=0 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 1 end_log_pos ## GTID last_committed=1 sequence_number=2 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 2 end_log_pos ## GTID last_committed=2 sequence_number=3 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 3 end_log_pos ## GTID last_committed=3 sequence_number=4 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 1 end_log_pos ## GTID last_committed=4 sequence_number=5 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 2 end_log_pos ## GTID last_committed=5 sequence_number=6 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
#time# ##:##:## server id 3 end_log_pos ## GTID last_committed=6 sequence_number=7 rbr_only=no original_committed_timestamp=##:##:## immediate_commit_timestamp=##:##:## transaction_length=#
Occurrences of 'last_committed' in the input file: 10
include/include/assert_logical_timestamps.inc [0 0;0 0;0 0;1 2;2 3;3 4;4 5;5 6;6 7]
Asserting all GTID transaction length information in 'server-relay-log-group_replication_applier.000002'
Inspected 9 transactions, all with correct transaction length.
############################################################
# 4. Test cleanup.
DROP USER user@nohost1;
DROP TABLE t2;
DROP DATABASE db1;
include/group_replication_end.inc
|