Debian Codegraph @

mysql-test/suite/binlog_gtid/t/binlog_gtid_log_status_errors.test

raw
1 # ==== Purpose ====
2 #
3 # This test will use debug instrumentation to hit all OOM
4 # errors expected by performance_schema.log_status
5 # table while collecting the information to be displayed.
6 #
7 # ==== Related Bugs and Worklogs ====
8 #
9 # WL#9452: Log Position Lock
10 #
11
12 --source include/have_debug.inc
13 --source include/have_debug_sync.inc
14 # This test case is binary log format agnostic
15 --source include/have_binlog_format_row.inc
16
17 # Configure a slave channel
18 CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1';
19
20 # Adding a channel to the resources list
21 --let $debug_point= log_status_oom_mi
22 --source include/add_debug_point.inc
23 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
24 SELECT * FROM performance_schema.log_status;
25 --source include/remove_debug_point.inc
26
27 # Adding binary log to the resources list
28 --let $debug_point= log_status_oom_binlog
29 --source include/add_debug_point.inc
30 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
31 SELECT * FROM performance_schema.log_status;
32 --source include/remove_debug_point.inc
33
34 # Adding gtid_state to the resources list
35 --let $debug_point= log_status_oom_gtid
36 --source include/add_debug_point.inc
37 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
38 SELECT * FROM performance_schema.log_status;
39 --source include/remove_debug_point.inc
40
41 # Adding a storage engine (InnoDB) to the resources list
42 --let $debug_point= log_status_oom_se
43 --source include/add_debug_point.inc
44 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
45 SELECT * FROM performance_schema.log_status;
46 --source include/remove_debug_point.inc
47
48 # Collecting information (only from a replication channel)
49 --let $debug_point= log_status_oom_collecting
50 --source include/add_debug_point.inc
51 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
52 SELECT * FROM performance_schema.log_status;
53 --source include/remove_debug_point.inc
54
55 # Generating the final channels JSON
56 --let $debug_point= log_status_oom_replication
57 --source include/add_debug_point.inc
58 --error ER_UNABLE_TO_COLLECT_LOG_STATUS
59 SELECT * FROM performance_schema.log_status;
60 --source include/remove_debug_point.inc
61
62 # To improve code coverage
63 --disable_result_log
64 SELECT * FROM performance_schema.log_status ORDER BY 1;
65 --enable_result_log
66
67 # Cleanup
68 RESET SLAVE ALL;