Debian Codegraph @

mysql-test/suite/group_replication/r/gr_certification_info_psi_memory.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. Verify that the entries corresponding to the
9 # instrumented memory are in the setup instruments
10 # table and the memory summary tables.
11 SELECT * FROM performance_schema.setup_instruments WHERE NAME LIKE 'memory/group_rpl/certification_info';
12 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
13 memory/group_rpl/certification_info YES NULL global_statistics 0 Memory used to store certification information which is used to handle conflict resolution between transactions that execute concurrently.
14 include/assert.inc ['There should be 1 entry corresponding to the certification_info in the setup_instruments table after starting GR']
15 SELECT EVENT_NAME FROM performance_schema.memory_summary_global_by_event_name WHERE EVENT_NAME LIKE 'memory/group_rpl/certification_info';
16 EVENT_NAME
17 memory/group_rpl/certification_info
18 include/assert.inc ['There should be 1 entry corresponding to the certification_info in the memory_summary_global_by_event_name table after starting GR']
19
20 ############################################################
21 # 2. Verify that the sum of bytes allocated is greater than
22 # zero for a transaction.
23 CREATE TABLE t1(c1 INT PRIMARY KEY) ENGINE=innodb;
24 SET @@GLOBAL.DEBUG= '+d,group_replication_certifier_after_add_item';
25 INSERT INTO t1 VALUES(1);;
26 [connection server_1]
27 SET DEBUG_SYNC= "now WAIT_FOR signal.group_replication_certifier_after_add_item_reached";
28 include/assert.inc ['The sum bytes allocated must be greater than 0']
29 SET @@GLOBAL.DEBUG= '-d,group_replication_certifier_after_add_item';
30 SET DEBUG_SYNC= "now SIGNAL signal.group_replication_certifier_after_add_item_continue";
31 [connection server1]
32 DROP TABLE t1;
33
34 ############################################################
35 # 3. Stop GR
36 include/stop_group_replication.inc
37
38 ##############################################################
39 # 4. Verify that the entries corresponding to the instrumented
40 # certification_info remain in the tables after stopping GR.
41 SELECT * FROM performance_schema.setup_instruments WHERE NAME LIKE 'memory/group_rpl/certification_info';
42 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
43 memory/group_rpl/certification_info YES NULL global_statistics 0 Memory used to store certification information which is used to handle conflict resolution between transactions that execute concurrently.
44 include/assert.inc ['There should be 1 entry corresponding to the certification_info in the setup_instruments table after stopping GR']
45 SELECT EVENT_NAME, CURRENT_NUMBER_OF_BYTES_USED FROM performance_schema.memory_summary_global_by_event_name WHERE EVENT_NAME LIKE 'memory/group_rpl/certification_info';
46 EVENT_NAME CURRENT_NUMBER_OF_BYTES_USED
47 memory/group_rpl/certification_info 0
48 include/assert.inc ['There should be 1 entry corresponding to the certification_info in the memory_summary_global_by_event_name table after stopping GR']
49
50 #################################################################
51 # 5. Assert that the number of bytes allocated for
52 # certification_info event must be 0.
53 include/assert.inc ['The sum of bytes allocated must be zero after stopping GR']
54
55 include/group_replication_end.inc