Debian Codegraph @

mysql-test/suite/innodb/r/lob_recovery.result

raw
1 #
2 # Bug #33454557 Innodb asserts due to corruption in the fsp layer while
3 # running MTR tests
4 #
5 set @s:=concat("CREATE TABLE t(a LONGBLOB GENERATED ALWAYS AS
6 ('",REPEAT("a",1024*1024),"') STORED) ENGINE=INNODB;");
7 PREPARE r FROM @s;
8 EXECUTE r;
9 DEALLOCATE PREPARE r;
10 DROP TABLE t;
11 set @s:=concat("CREATE TABLE t(w INT, A INT GENERATED ALWAYS
12 AS('",REPEAT("\\0",1024*1024),"') STORED) ENGINE=INNODB;");
13 PREPARE r FROM @s;
14 EXECUTE r;
15 DEALLOCATE PREPARE r;
16 DROP TABLE t;
17 # Kill and restart
18 CREATE TABLE `ibstd_02` (
19 `a` int NOT NULL,
20 `d` int NOT NULL,
21 `b` varchar(198) NOT NULL,
22 `c` char(94) DEFAULT NULL,
23 `nc02614` blob,
24 `nc07663` decimal(10,0) NOT NULL,
25 `nc02836` int DEFAULT NULL,
26 `nc06406` bigint NOT NULL,
27 `nc08713` mediumtext,
28 `nc00159` char(9) DEFAULT NULL,
29 `nc03394` varchar(198) NOT NULL,
30 `nc09912` int DEFAULT NULL,
31 `nc04074` mediumtext NOT NULL,
32 `gc06942` geometry DEFAULT NULL,
33 `nc01416` decimal(10,0) DEFAULT '-62775914',
34 `nc02900` mediumtext,
35 `nc01060` int NOT NULL,
36 `nc09703` double DEFAULT NULL,
37 `nc02361` char(19) DEFAULT NULL,
38 `nc09146` tinytext NOT NULL,
39 `nc01349` tinytext,
40 `nc05115` varchar(83) DEFAULT NULL,
41 `nc01550` blob,
42 `nc01963` tinyint DEFAULT NULL,
43 `nc03089` tinyint DEFAULT NULL,
44 `nc03917` bigint NOT NULL,
45 `nc00433` tinytext,
46 `nc00080` tinytext,
47 `nc03787` decimal(10,0) NOT NULL DEFAULT '-116224180',
48 `nc04351` int NOT NULL,
49 `nc05428` longblob,
50 `nc02756` bigint DEFAULT '-7995081',
51 `nc01152` double NOT NULL,
52 `nc07297` decimal(10,0) NOT NULL,
53 `nc07970` tinytext NOT NULL,
54 `nc07670` varchar(239) DEFAULT '5dgword0.7621719722386470.227883050724099',
55 `nc06861` tinyint NOT NULL,
56 `nc08265` char(23) NOT NULL,
57 `nc09700` longblob NOT NULL,
58 `nc06366` decimal(10,0) DEFAULT '1744702',
59 `nc03517` bigint NOT NULL DEFAULT '-109091878',
60 `nc06783` double NOT NULL,
61 `nc09164` char(21) DEFAULT NULL,
62 `nc00539` blob,
63 `nc05630` varchar(111) NOT NULL,
64 `nc01824` varchar(411) NOT NULL DEFAULT '0.2748128049709210.5692422509033510.0247909802167818',
65 `nc07849` longblob NOT NULL,
66 `nc02543` tinyint DEFAULT NULL,
67 `nc06790` double DEFAULT NULL,
68 `nc08367` varchar(40) DEFAULT '0.678796587967447',
69 `nc04269` mediumtext,
70 `nc01684` char(21) NOT NULL,
71 `nc09725` decimal(10,0) DEFAULT NULL,
72 `nc06545` bigint DEFAULT NULL,
73 `nc08187` varchar(232) DEFAULT NULL,
74 `gc05904` multipoint DEFAULT NULL,
75 `nc03479` longblob,
76 `nc06046` tinyint DEFAULT NULL,
77 `nc01036` decimal(10,0) NOT NULL DEFAULT '-7530867',
78 `nc00735` tinyint DEFAULT NULL,
79 `nc09430` varchar(117) DEFAULT NULL,
80 `nc02844` blob NOT NULL,
81 `nc00023` tinytext,
82 `nc03094` tinyint DEFAULT NULL,
83 `nc03312` tinytext NOT NULL,
84 `nc03475` tinytext,
85 `nc02475` mediumtext NOT NULL,
86 `nc01252` decimal(10,0) NOT NULL DEFAULT '8615274',
87 `nc01020` longblob NOT NULL,
88 `nc04131` mediumtext NOT NULL,
89 `nc05027` mediumtext,
90 `nc02184` double NOT NULL,
91 `nc07416` double DEFAULT NULL,
92 `nc04127` varchar(135) DEFAULT NULL,
93 `nc06159` longblob,
94 `nc01122` int DEFAULT NULL,
95 `nc01409` blob,
96 `nc01326` decimal(10,0) NOT NULL,
97 `nc03458` decimal(10,0) DEFAULT NULL,
98 `nc03327` bigint NOT NULL,
99 `nc00834` tinytext,
100 `nc07637` bigint DEFAULT '-125873342',
101 `nc07289` mediumtext NOT NULL,
102 `nc00110` int NOT NULL,
103 `nc09363` varchar(389) DEFAULT NULL,
104 `nc02046` tinytext,
105 `nc04790` bigint NOT NULL DEFAULT '81062191',
106 `nc03499` tinyint NOT NULL DEFAULT '-100',
107 `nc05566` decimal(10,0) DEFAULT NULL,
108 `nc01148` tinyint NOT NULL,
109 `nc03784` mediumtext,
110 `nc06338` bigint NOT NULL DEFAULT '-92351690',
111 `nc01068` tinytext,
112 `nc08596` mediumtext NOT NULL,
113 `nc02796` tinyint NOT NULL,
114 `nc04875` decimal(10,0) DEFAULT NULL,
115 `nc02799` int NOT NULL,
116 `nc00074` int NOT NULL,
117 `nc03703` decimal(10,0) NOT NULL,
118 `nc06965` tinyint NOT NULL DEFAULT '0',
119 `nc08710` mediumtext NOT NULL,
120 `nc01675` varchar(200) DEFAULT NULL,
121 `nc09917` decimal(10,0) NOT NULL,
122 `nc08148` longblob,
123 `nc01298` longblob,
124 `nc01613` decimal(10,0) DEFAULT NULL,
125 `nc01656` int DEFAULT NULL,
126 `nc08402` char(19) DEFAULT NULL,
127 `nc04340` tinytext,
128 `nc05768` mediumtext,
129 `nc03616` int DEFAULT NULL,
130 `gc00680` point DEFAULT NULL,
131 `nc06802` tinytext,
132 `nc01681` tinytext NOT NULL,
133 `nc00004` double NOT NULL DEFAULT '-110206412.196301',
134 `nc07322` double NOT NULL,
135 `nc05772` bigint DEFAULT NULL,
136 `nc02010` varchar(338) DEFAULT NULL,
137 KEY `d` (`d` DESC),
138 KEY `a` (`a`),
139 KEY `b` (`b`(10),`a`,`d` DESC),
140 KEY `c` (`c`(56),`b`(56) DESC),
141 KEY `b_2` (`b`(5),`c`(10),`a` DESC)
142 ) /*!50100 TABLESPACE `innodb_file_per_table` */
143 ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
144 COLLATE=utf8mb4_0900_ai_ci STATS_PERSISTENT=1 ENCRYPTION='N';
145 alter table ibstd_02 add column nc09053 blob not null, algorithm=instant;
146 alter table ibstd_02 add column nc03118 mediumtext, algorithm=instant;
147 alter table ibstd_02 add column nc08926 tinytext, algorithm=instant, lock=default;
148 alter table ibstd_02 add column nc09010 double default '73563844.85182579', algorithm=instant;
149 alter table ibstd_02 add column nc07017 decimal not null, algorithm=instant, lock=default;
150 alter table ibstd_02 add column nc07007 tinytext not null, algorithm=instant;
151 alter table ibstd_02 add column nc08086 blob, algorithm=instant;
152 select * from ibstd_02;
153 a d b c nc02614 nc07663 nc02836 nc06406 nc08713 nc00159 nc03394 nc09912 nc04074 gc06942 nc01416 nc02900 nc01060 nc09703 nc02361 nc09146 nc01349 nc05115 nc01550 nc01963 nc03089 nc03917 nc00433 nc00080 nc03787 nc04351 nc05428 nc02756 nc01152 nc07297 nc07970 nc07670 nc06861 nc08265 nc09700 nc06366 nc03517 nc06783 nc09164 nc00539 nc05630 nc01824 nc07849 nc02543 nc06790 nc08367 nc04269 nc01684 nc09725 nc06545 nc08187 gc05904 nc03479 nc06046 nc01036 nc00735 nc09430 nc02844 nc00023 nc03094 nc03312 nc03475 nc02475 nc01252 nc01020 nc04131 nc05027 nc02184 nc07416 nc04127 nc06159 nc01122 nc01409 nc01326 nc03458 nc03327 nc00834 nc07637 nc07289 nc00110 nc09363 nc02046 nc04790 nc03499 nc05566 nc01148 nc03784 nc06338 nc01068 nc08596 nc02796 nc04875 nc02799 nc00074 nc03703 nc06965 nc08710 nc01675 nc09917 nc08148 nc01298 nc01613 nc01656 nc08402 nc04340 nc05768 nc03616 gc00680 nc06802 nc01681 nc00004 nc07322 nc05772 nc02010 nc09053 nc03118 nc08926 nc09010 nc07017 nc07007 nc08086
154 drop table ibstd_02;
155 # Kill and restart
156 set global innodb_file_per_table = off;
157 CREATE TABLE t1(a INT NOT NULL, PRIMARY KEY(a)) ENGINE=INNODB
158 PARTITION BY HASH(a) PARTITIONS 1024;
159 DROP TABLE t1;
160 set global innodb_file_per_table = off;
161 CREATE TABLE t1(a INT NOT NULL, PRIMARY KEY(a)) ENGINE=INNODB
162 PARTITION BY HASH(a) PARTITIONS 1024;
163 RENAME TABLE t1 TO t2;
164 DROP TABLE t2;
165 set global innodb_file_per_table = off;
166 CREATE TABLE t1(a INT NOT NULL, PRIMARY KEY(a)) ENGINE=INNODB
167 PARTITION BY HASH(a) PARTITIONS 1024;
168 TRUNCATE TABLE t1;
169 DROP TABLE t1;
170 set global innodb_file_per_table = on;
171 CREATE TABLE t1(a INT NOT NULL, PRIMARY KEY(a)) ENGINE=INNODB
172 PARTITION BY HASH(a) PARTITIONS 1024;
173 DROP TABLE t1;