Debian Codegraph @

mysql-test/suite/group_replication/r/gr_certifier_garbage_collection_counter_overflow.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 ############################################################
8 # 1. Start Group Replication and force a garbage collect
9 # high number on write set of certification info.
10 include/start_and_bootstrap_group_replication.inc
11 # Adding debug point 'group_replication_ci_rows_counter_high' to @@GLOBAL.debug
12
13 ############################################################
14 # 2. Run some transactions on the group to increase
15 # garbage collection size.
16 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY, c2 INT UNIQUE KEY NOT NULL, c3 INT UNIQUE KEY NOT NULL);
17
18 ############################################################
19 # 3. Remove certification info higher gtid set ref and
20 # enable debug point that will simulate a one time
21 # overflow on garbage collect counter.
22 # Removing debug point 'group_replication_ci_rows_counter_high' from @@GLOBAL.debug
23 # Adding debug point 'group_replication_garbage_collect_counter_overflow' to @@GLOBAL.debug
24
25 ############################################################
26 # 4. As certification garbage collect simulates an overflow
27 # it will not delete values from certification info.
28
29 ############################################################
30 # 5. Assert there are 3000 rows on certification info.
31 include/assert.inc ['Count_transactions_rows_validating must be 3000']
32
33 ############################################################
34 # 6. Remove debug point, already unset in the code
35 # Removing debug point 'group_replication_garbage_collect_counter_overflow' from @@GLOBAL.debug
36
37 ############################################################
38 # 7. Execute one more transaction to update stable set and
39 # garbage collect will clean certification info.
40 INSERT INTO t1 VALUES (1001, 1001, 1001);
41
42 #################################################################
43 # 8. Cleanup
44 DROP TABLE t1;
45 include/group_replication_end.inc