Debian Codegraph @

mysql-test/suite/group_replication/r/gr_transaction_data_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/transaction_data';
12 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
13 memory/group_rpl/transaction_data YES NULL global_statistics 0 Memory gets allocated for this Event name when the incoming transaction is queued to be handled by the plugin pipeline.
14 include/assert.inc ['There should be 1 entry corresponding to the transaction_data 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/transaction_data';
16 EVENT_NAME
17 memory/group_rpl/transaction_data
18 include/assert.inc ['There should be 1 entry corresponding to the transaction_data 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 and zero after transaction is
23 # finished.
24 CREATE TABLE t1(c1 INT PRIMARY KEY) ENGINE=innodb;
25 SET @@GLOBAL.DEBUG= '+d,group_replication_apply_data_packet_after_inject';
26 INSERT INTO t1 VALUES(1);;
27 [connection server_1]
28 SET DEBUG_SYNC= "now WAIT_FOR signal.group_replication_apply_data_packet_after_inject_reached";
29 include/assert.inc ['The sum of bytes allocated must be greater than 0']
30 SET @@GLOBAL.DEBUG= '-d,group_replication_apply_data_packet_after_inject';
31 SET DEBUG_SYNC= "now SIGNAL signal.group_replication_apply_data_packet_after_inject_continue";
32 [connection server1]
33 DROP TABLE t1;
34
35 ############################################################
36 # 3. Stop GR
37 include/stop_group_replication.inc
38
39 ##############################################################
40 # 4. Verify that the entries corresponding to the instrumented
41 # transaction_data remain in the tables after stopping GR.
42 SELECT * FROM performance_schema.setup_instruments WHERE NAME LIKE 'memory/group_rpl/transaction_data';
43 NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION
44 memory/group_rpl/transaction_data YES NULL global_statistics 0 Memory gets allocated for this Event name when the incoming transaction is queued to be handled by the plugin pipeline.
45 include/assert.inc ['There should be 1 entry corresponding to the transaction_data in the setup_instruments table after stopping GR']
46 SELECT EVENT_NAME, CURRENT_NUMBER_OF_BYTES_USED FROM performance_schema.memory_summary_global_by_event_name WHERE EVENT_NAME LIKE 'memory/group_rpl/transaction_data';
47 EVENT_NAME CURRENT_NUMBER_OF_BYTES_USED
48 memory/group_rpl/transaction_data 0
49 include/assert.inc ['There should be 1 entry corresponding to the transaction_data in the memory_summary_global_by_event_name table after stopping GR']
50
51 #################################################################
52 # 5. Assert that the number of bytes allocated for
53 # transaction_data event must be 0.
54 include/assert.inc ['The sum of bytes allocated must be zero after stopping GR']
55
56 #################################################################
57 # 6. Cleanup
58 include/group_replication_end.inc