File: binlog_incident_concurrent.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (184 lines) | stat: -rw-r--r-- 6,130 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
call mtr.add_suppression("Non-transactional changes were not written to the binlog. An incident event has been written to the binary log which will stop the replicas.");
SET GLOBAL max_binlog_stmt_cache_size = 4096;
Warnings:
Warning	1745	Option binlog_stmt_cache_size (32768) is greater than max_binlog_stmt_cache_size (4096); setting binlog_stmt_cache_size equal to max_binlog_stmt_cache_size.
SET GLOBAL binlog_stmt_cache_size = 4096;
CREATE TABLE t1(c1 INT PRIMARY KEY, data TEXT(30000)) ENGINE=MyIsam;
CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(400)) engine=InnoDB;
CREATE PROCEDURE dmlload (seconds int)
begin
set @x=time_to_sec(current_time()) + seconds;
repeat
start transaction;
insert into t2 values (2, repeat('I', 400));
commit;
start transaction;
update t2 set b=repeat('Z', 400) where a=2;
commit;
start transaction;
delete from t2 where a=2;
commit;
until @x <= time_to_sec(current_time())
end repeat;
end%
RESET MASTER;
# Start running background load for 5 seconds
call dmlload(5);
# i: 1
Got one of the listed errors
# i: 2
Got one of the listed errors
# i: 3
Got one of the listed errors
# i: 4
Got one of the listed errors
# i: 5
Got one of the listed errors
# i: 6
Got one of the listed errors
# i: 7
Got one of the listed errors
# i: 8
Got one of the listed errors
# i: 9
Got one of the listed errors
# i: 10
Got one of the listed errors
# i: 11
Got one of the listed errors
# i: 12
Got one of the listed errors
# i: 13
Got one of the listed errors
# i: 14
Got one of the listed errors
# i: 15
Got one of the listed errors
# i: 16
Got one of the listed errors
# i: 17
Got one of the listed errors
# i: 18
Got one of the listed errors
# i: 19
Got one of the listed errors
# i: 20
Got one of the listed errors
# i: 21
Got one of the listed errors
# i: 22
Got one of the listed errors
# i: 23
Got one of the listed errors
# i: 24
Got one of the listed errors
# i: 25
Got one of the listed errors
# i: 26
Got one of the listed errors
# i: 27
Got one of the listed errors
# i: 28
Got one of the listed errors
# i: 29
Got one of the listed errors
# i: 30
Got one of the listed errors
# i: 31
Got one of the listed errors
# i: 32
Got one of the listed errors
# i: 33
Got one of the listed errors
# i: 34
Got one of the listed errors
# i: 35
Got one of the listed errors
# i: 36
Got one of the listed errors
# i: 37
Got one of the listed errors
# i: 38
Got one of the listed errors
# i: 39
Got one of the listed errors
# i: 40
Got one of the listed errors
# i: 41
Got one of the listed errors
# i: 42
Got one of the listed errors
# i: 43
Got one of the listed errors
# i: 44
Got one of the listed errors
# i: 45
Got one of the listed errors
# i: 46
Got one of the listed errors
# i: 47
Got one of the listed errors
# i: 48
Got one of the listed errors
# i: 49
Got one of the listed errors
# i: 50
Got one of the listed errors
# There should now be 50 incidents in the binlog
# Collect background load result
# Check that binlogs contain Gtid + Incident
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
include/assert_binlog_events.inc [!Gtid_or_anon # Incident]
DROP TABLE t1;
DROP TABLE t2;
DROP PROCEDURE dmlload;
SET GLOBAL max_binlog_stmt_cache_size= ORIGINAL_VALUE;
SET GLOBAL binlog_stmt_cache_size= ORIGINAL_VALUE;