1include/group_replication.inc
2Warnings:
3Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
4Note	####	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.
5[connection server1]
6
7############################################################
8# 1. Assert that last_conflict_free_transaction is correct
9#    when last transaction GTID was generated.
10CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
11include/rpl_sync.inc
12[connection server1]
13include/assert.inc [On server1, the value of last_conflict_free_transaction must be the last positively certified transaction (group generated)]
14[connection server2]
15include/assert.inc [On server2, the value of last_conflict_free_transaction must be the last positively certified transaction (group generated)]
16
17############################################################
18# 2. Assert that last_conflict_free_transaction is correct
19#    when last transaction GTID was specified.
20SET GTID_NEXT= "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1";
21INSERT INTO t1 VALUES (1);
22SET GTID_NEXT= AUTOMATIC;
23include/rpl_sync.inc
24[connection server1]
25include/assert.inc [On server1, the value of last_conflict_free_transaction must be the last positively certified transaction (specified GTID)]
26[connection server2]
27include/assert.inc [On server2, the value of last_conflict_free_transaction must be the last positively certified transaction (specified GTID)]
28
29############################################################
30# 3. Clean up.
31DROP TABLE t1;
32include/group_replication_end.inc
33