Debian Codegraph @

mysql-test/suite/innodb/t/zlob_rollback_crash.test

raw
1 --source include/have_innodb_max_16k.inc
2 --source include/have_debug.inc
3
4 # Valgrind can hang or return spurious messages on DBUG_SUICIDE
5 --source include/not_valgrind.inc
6
7 set global innodb_compression_level = 0;
8
9 --disable_reconnect
10
11 CREATE TABLE t(j1 JSON) row_format=compressed;
12
13 set @data_1 = repeat('abcdefghijklmnopqrstuvwxyz1234', 6006);
14 set @json_doc_1 = concat('["Sven", "', @data_1, '"]');
15 set @json_doc_2 = concat('["Glen", "', @data_1, '"]');
16
17 show create table t;
18
19 start transaction;
20 --echo # Insert data
21 INSERT INTO t VALUES (@json_doc_1);
22
23 SET SESSION DEBUG='+d,crash_end_of_lob_rollback_0';
24
25 --source include/expect_crash.inc
26
27 --error 2013
28 rollback;
29
30 --source include/start_mysqld.inc
31
32 set @data_1 = repeat('abcdefghijklmnopqrstuvwxyz1234', 6006);
33 set @json_doc_1 = concat('["Sven", "', @data_1, '"]');
34 set @json_doc_2 = concat('["Glen", "', @data_1, '"]');
35
36 select count(*) from t;
37
38 INSERT INTO t VALUES (@json_doc_1);
39
40 start transaction;
41 --echo # Insert data
42 INSERT INTO t VALUES (@json_doc_2);
43
44 SET SESSION DEBUG='+d,crash_end_of_lob_rollback_0';
45
46 --source include/expect_crash.inc
47
48 --error 2013
49 rollback;
50
51 --source include/start_mysqld.inc
52
53 select count(*) from t;
54
55 drop table t;
56
57 set global innodb_compression_level = default;