Debian Codegraph @

mysql-test/suite/perfschema/r/idx_compare_replication_applier_status.result

raw
1 include/master-slave.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 master]
6 include/stop_slave.inc
7 SET @old_replica_parallel_workers= @@global.replica_parallel_workers;
8 SET GLOBAL replica_parallel_workers= 4;
9 include/start_slave.inc
10 SELECT COUNT_TRANSACTIONS_RETRIES INTO @old_count_transactions_retries FROM
11 performance_schema.replication_applier_status;
12
13 ## Create index_test() procedure
14 DROP PROCEDURE IF EXISTS index_test;
15 select CHANNEL_NAME, SERVICE_STATE, REMAINING_DELAY,
16 COUNT_TRANSACTIONS_RETRIES - @old_count_transactions_retries as should_be_zero FROM
17 performance_schema.replication_applier_status;
18 CHANNEL_NAME SERVICE_STATE REMAINING_DELAY should_be_zero
19 ON NULL 0
20 set @pfs_columns = "*";
21 TABLE: "replication_applier_status"
22 INDEXES: PK (CHANNEL_NAME)
23
24 ===== BEGIN TEST =====
25 ========
26 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME is null
27
28 OK: Handler_read_key
29
30 OK: Result set: Empty Expected: Empty
31
32 OK: Extra rows: 0 Missing rows: 0
33 ========
34 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME is not null
35
36 OK: Handler_read_key
37
38 OK: Result set: Non-empty Expected: Non-empty
39
40 OK: Extra rows: 0 Missing rows: 0
41 ========
42 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME = ''
43
44 OK: Handler_read_key
45
46 OK: Result set: Non-empty Expected: Non-empty
47
48 OK: Extra rows: 0 Missing rows: 0
49 ========
50 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME != ''
51
52 OK: Handler_read_key
53
54 OK: Result set: Empty Expected: Empty
55
56 OK: Extra rows: 0 Missing rows: 0
57 ========
58 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME = 'impossible'
59
60 OK: Handler_read_key
61
62 OK: Result set: Empty Expected: Empty
63
64 OK: Extra rows: 0 Missing rows: 0
65 ========
66 SELECT * FROM performance_schema.replication_applier_status WHERE CHANNEL_NAME != 'impossible' ORDER BY CHANNEL_NAME DESC
67
68 OK: Handler_read_key
69
70 OK: Result set: Non-empty Expected: Non-empty
71
72 OK: Extra rows: 0 Missing rows: 0
73
74 ===== CLEAN UP =====
75 DROP PROCEDURE index_test;
76 DROP TABLE IF EXISTS test.indexes_off;
77 DROP TABLE IF EXISTS test.indexes_on;
78 include/stop_slave.inc
79 SET GLOBAL replica_parallel_workers= @old_replica_parallel_workers;
80 include/start_slave.inc
81 include/rpl_end.inc