Debian Codegraph @

mysql-test/suite/rpl/r/rpl_relay_log_space_limit_net_write_timeout.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
7 # 1. Create a table
8 # 2. Generate several large transactions, containing large events
9
10 CREATE TABLE t (a LONGBLOB) ENGINE = InnoDB;
11 CREATE PROCEDURE gen_transactions(trx_count INT, ev_count INT, insert_byte_count INT)
12 BEGIN
13 SET @x = 0;
14 REPEAT
15 START TRANSACTION;
16 SET @ev_cnt = 0;
17 REPEAT
18 INSERT INTO t VALUES (REPEAT('a', insert_byte_count));
19 SET @ev_cnt = @ev_cnt + 1;
20 UNTIL @ev_cnt >= ev_count
21 END REPEAT;
22 COMMIT;
23 SET @x = @x + 1;
24 UNTIL @x >= trx_count
25 END REPEAT;
26 END %
27 CALL gen_transactions(5, 3, 104857600);
28
29 # 3. Run replication
30
31 [connection slave]
32 include/start_slave.inc
33
34 # 4. Synchronize source and replica servers
35
36 [connection master]
37 include/sync_slave_sql_with_master.inc
38
39 # 5. Check Pass condition 1: the number of connects to the source
40 # is less than or equal to the number of transactions
41
42 include/assert_grep.inc [Check Pass condition 1]
43
44 # Clean up
45
46 [connection master]
47 DROP TABLE t;
48 DROP PROCEDURE gen_transactions;
49 include/rpl_end.inc