Skip to content

Commit 6021143

Browse files
sachinagarwal1111bjornmu
authored andcommitted
Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES
Post push fix. Problem: As part of fix, one test case was added in virtual_index.test. which is reporting ASAN failure, but it is not caused by the code changes been done for this bug fix. This test-case has revealed another bug. Fix: Disable test-case. Raised new bug #28556793 INNODB UPDATE_ROW ASAN FAILURE HEAP-USE-AFTER-FREE
1 parent 239502e commit 6021143

File tree

2 files changed

+31
-63
lines changed

2 files changed

+31
-63
lines changed

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -287,39 +287,3 @@ t1 CREATE TABLE `t1` (
287287
KEY `n` (`Name`)
288288
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
289289
DROP TABLE t1;
290-
#
291-
# Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES
292-
SET sql_mode='';
293-
CREATE TABLE t1(
294-
a INT not null,
295-
b CHAR(4) not null,
296-
c TEXT GENERATED ALWAYS AS ((a <> b)) VIRTUAL,
297-
UNIQUE KEY i1 (a),
298-
UNIQUE KEY i2 (c(1))
299-
) ENGINE=INNODB;
300-
insert into t1 set a=1;
301-
Warnings:
302-
Warning 1364 Field 'b' doesn't have a default value
303-
insert into t1 set a=0;
304-
Warnings:
305-
Warning 1364 Field 'b' doesn't have a default value
306-
replace into t1 set b ='1';
307-
Warnings:
308-
Warning 1364 Field 'a' doesn't have a default value
309-
DROP TABLE t1;
310-
SET names utf8;
311-
Warnings:
312-
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
313-
CREATE TABLE t1 (
314-
a VARCHAR(1000) GENERATED ALWAYS AS ('1') VIRTUAL,
315-
b VARCHAR(1000) NOT NULL,
316-
c VARCHAR(1000) GENERATED ALWAYS AS (b) STORED NOT NULL,
317-
KEY (b(1)),
318-
KEY (a(1))
319-
) ENGINE=INNODB
320-
ROW_FORMAT=COMPRESSED
321-
KEY_BLOCK_SIZE=1;
322-
INSERT INTO t1(b) VALUES(REPEAT('a',947));
323-
DELETE FROM t1;
324-
DROP TABLE t1;
325-
SET sql_mode = default;

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

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -264,32 +264,36 @@ SHOW CREATE TABLE t1;
264264

265265
DROP TABLE t1;
266266

267+
#Disable the test case because it's being failed on ASAN.
268+
TODO : Bug #28556793 INNODB UPDATE_ROW ASAN FAILURE HEAP-USE-AFTER-FREE
269+
if (0)
270+
{
267271
--echo #
268272
--echo # Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES
269-
SET sql_mode='';
270-
CREATE TABLE t1(
271-
a INT not null,
272-
b CHAR(4) not null,
273-
c TEXT GENERATED ALWAYS AS ((a <> b)) VIRTUAL,
274-
UNIQUE KEY i1 (a),
275-
UNIQUE KEY i2 (c(1))
276-
) ENGINE=INNODB;
277-
insert into t1 set a=1;
278-
insert into t1 set a=0;
279-
replace into t1 set b ='1';
280-
DROP TABLE t1;
281-
282-
SET names utf8;
283-
CREATE TABLE t1 (
284-
a VARCHAR(1000) GENERATED ALWAYS AS ('1') VIRTUAL,
285-
b VARCHAR(1000) NOT NULL,
286-
c VARCHAR(1000) GENERATED ALWAYS AS (b) STORED NOT NULL,
287-
KEY (b(1)),
288-
KEY (a(1))
289-
) ENGINE=INNODB
290-
ROW_FORMAT=COMPRESSED
291-
KEY_BLOCK_SIZE=1;
292-
INSERT INTO t1(b) VALUES(REPEAT('a',947));
293-
DELETE FROM t1;
294-
DROP TABLE t1;
295-
SET sql_mode = default;
273+
SET sql_mode='';
274+
CREATE TABLE t1(
275+
a INT not null,
276+
b CHAR(4) not null,
277+
c TEXT GENERATED ALWAYS AS ((a <> b)) VIRTUAL,
278+
UNIQUE KEY i1 (a),
279+
UNIQUE KEY i2 (c(1))
280+
) ENGINE=INNODB;
281+
insert into t1 set a=1;
282+
insert into t1 set a=0;
283+
replace into t1 set b ='1';
284+
DROP TABLE t1;
285+
286+
SET names utf8;
287+
CREATE TABLE t1 (
288+
a VARCHAR(1000) GENERATED ALWAYS AS ('1') VIRTUAL,
289+
b VARCHAR(1000) NOT NULL,
290+
c VARCHAR(1000) GENERATED ALWAYS AS (b) STORED NOT NULL,
291+
KEY (b(1)),
292+
KEY (a(1))
293+
) ENGINE=INNODB
294+
ROW_FORMAT=COMPRESSED
295+
KEY_BLOCK_SIZE=1;
296+
INSERT INTO t1(b) VALUES(REPEAT('a',947));
297+
DELETE FROM t1;
298+
DROP TABLE t1;
299+
SET sql_mode = default;

0 commit comments

Comments
 (0)